Package com.google.common.base
Class CharMatcher.Whitespace
- 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.Whitespace
-
- All Implemented Interfaces:
Predicate<java.lang.Character>
,java.util.function.Predicate<java.lang.Character>
- Enclosing class:
- CharMatcher
static final class CharMatcher.Whitespace extends CharMatcher.NamedFastMatcher
Implementation ofCharMatcher.whitespace()
.
-
-
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 (package private) static CharMatcher.Whitespace
INSTANCE
(package private) static int
MULTIPLIER
(package private) static int
SHIFT
(package private) static java.lang.String
TABLE
-
Constructor Summary
Constructors Constructor Description Whitespace()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(char c)
Determines a true or false value for the given character.(package private) void
setBits(java.util.BitSet table)
Sets bits intable
matched 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
-
-
-
-
Field Detail
-
TABLE
static final java.lang.String TABLE
- See Also:
- Constant Field Values
-
MULTIPLIER
static final int MULTIPLIER
- See Also:
- Constant Field Values
-
SHIFT
static final int SHIFT
-
INSTANCE
static final CharMatcher.Whitespace INSTANCE
-
-
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
-
setBits
@GwtIncompatible void setBits(java.util.BitSet table)
Description copied from class:CharMatcher
Sets bits intable
matched by this matcher.- Overrides:
setBits
in classCharMatcher
-
-