Package com.google.common.base
Class CharMatcher.BitSetMatcher
- java.lang.Object
-
- com.google.common.base.CharMatcher
-
- com.google.common.base.CharMatcher.FastMatcher
-
- com.google.common.base.CharMatcher.NamedFastMatcher
-
- com.google.common.base.CharMatcher.BitSetMatcher
-
- All Implemented Interfaces:
Predicate<java.lang.Character>,java.util.function.Predicate<java.lang.Character>
- Enclosing class:
- CharMatcher
private static final class CharMatcher.BitSetMatcher extends CharMatcher.NamedFastMatcher
Fast matcher using aBitSettable of matching characters.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.base.CharMatcher
CharMatcher.FastMatcher, CharMatcher.NamedFastMatcher, CharMatcher.NegatedFastMatcher, CharMatcher.Whitespace
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.BitSettable
-
Constructor Summary
Constructors Modifier Constructor Description privateBitSetMatcher(java.util.BitSet table, java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(char c)Determines a true or false value for the given character.(package private) voidsetBits(java.util.BitSet bitSet)Sets bits intablematched by this matcher.-
Methods inherited from class com.google.common.base.CharMatcher.NamedFastMatcher
toString
-
Methods inherited from class com.google.common.base.CharMatcher.FastMatcher
negate, precomputed
-
Methods inherited from class com.google.common.base.CharMatcher
and, any, anyOf, apply, ascii, breakingWhitespace, collapseFrom, countIn, digit, forPredicate, indexIn, indexIn, inRange, invisible, is, isNot, javaDigit, javaIsoControl, javaLetter, javaLetterOrDigit, javaLowerCase, javaUpperCase, lastIndexIn, matchesAllOf, matchesAnyOf, matchesNoneOf, none, noneOf, or, precomputedInternal, removeFrom, replaceFrom, replaceFrom, retainFrom, singleWidth, trimAndCollapseFrom, trimFrom, trimLeadingFrom, trimTrailingFrom, whitespace
-
-
-
-
Method Detail
-
matches
public boolean matches(char c)
Description copied from class:CharMatcherDetermines a true or false value for the given character.- Specified by:
matchesin classCharMatcher
-
setBits
void setBits(java.util.BitSet bitSet)
Description copied from class:CharMatcherSets bits intablematched by this matcher.- Overrides:
setBitsin classCharMatcher
-
-