Package com.google.common.base
Class CharMatcher.IsNot
- java.lang.Object
-
- com.google.common.base.CharMatcher
-
- com.google.common.base.CharMatcher.FastMatcher
-
- com.google.common.base.CharMatcher.IsNot
-
- All Implemented Interfaces:
Predicate<java.lang.Character>
- Enclosing class:
- CharMatcher
private static final class CharMatcher.IsNot extends CharMatcher.FastMatcher
Implementation ofCharMatcher.isNot(char)
.
-
-
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 char
match
-
Fields inherited from class com.google.common.base.CharMatcher
ANY, ASCII, BREAKING_WHITESPACE, DIGIT, INVISIBLE, JAVA_DIGIT, JAVA_ISO_CONTROL, JAVA_LETTER, JAVA_LETTER_OR_DIGIT, JAVA_LOWER_CASE, JAVA_UPPER_CASE, NONE, SINGLE_WIDTH, WHITESPACE
-
-
Constructor Summary
Constructors Constructor Description IsNot(char match)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharMatcher
and(CharMatcher other)
Returns a matcher that matches any character matched by both this matcher andother
.boolean
matches(char c)
Determines a true or false value for the given character.CharMatcher
negate()
Returns a matcher that matches any character not matched by this matcher.CharMatcher
or(CharMatcher other)
Returns a matcher that matches any character matched by either this matcher orother
.(package private) void
setBits(java.util.BitSet table)
Sets bits intable
matched by this matcher.java.lang.String
toString()
Returns a string representation of thisCharMatcher
, such asCharMatcher.or(WHITESPACE, JAVA_DIGIT)
.-
Methods inherited from class com.google.common.base.CharMatcher.FastMatcher
precomputed
-
Methods inherited from class com.google.common.base.CharMatcher
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, precomputedInternal, removeFrom, replaceFrom, replaceFrom, retainFrom, singleWidth, trimAndCollapseFrom, trimFrom, trimLeadingFrom, trimTrailingFrom, whitespace
-
-
-
-
Method Detail
-
matches
public boolean matches(char c)
Description copied from class:CharMatcher
Determines a true or false value for the given character.- Specified by:
matches
in classCharMatcher
-
and
public CharMatcher and(CharMatcher other)
Description copied from class:CharMatcher
Returns a matcher that matches any character matched by both this matcher andother
.- Overrides:
and
in classCharMatcher
-
or
public CharMatcher or(CharMatcher other)
Description copied from class:CharMatcher
Returns a matcher that matches any character matched by either this matcher orother
.- Overrides:
or
in classCharMatcher
-
setBits
@GwtIncompatible void setBits(java.util.BitSet table)
Description copied from class:CharMatcher
Sets bits intable
matched by this matcher.- Overrides:
setBits
in classCharMatcher
-
negate
public CharMatcher negate()
Description copied from class:CharMatcher
Returns a matcher that matches any character not matched by this matcher.- Overrides:
negate
in classCharMatcher.FastMatcher
-
toString
public java.lang.String toString()
Description copied from class:CharMatcher
Returns a string representation of thisCharMatcher
, such asCharMatcher.or(WHITESPACE, JAVA_DIGIT)
.- Overrides:
toString
in classCharMatcher
-
-