Package com.google.common.base
Class CharMatcher.NegatedFastMatcher
- java.lang.Object
-
- com.google.common.base.CharMatcher
-
- com.google.common.base.CharMatcher.Negated
-
- com.google.common.base.CharMatcher.NegatedFastMatcher
-
- All Implemented Interfaces:
Predicate<java.lang.Character>
,java.util.function.Predicate<java.lang.Character>
- Enclosing class:
- CharMatcher
static class CharMatcher.NegatedFastMatcher extends CharMatcher.Negated
Negation of aCharMatcher.FastMatcher
.
-
-
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 inherited from class com.google.common.base.CharMatcher.Negated
original
-
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 NegatedFastMatcher(CharMatcher original)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharMatcher
precomputed()
Returns achar
matcher functionally equivalent to this one, but which may be faster to query than the original; your mileage may vary.-
Methods inherited from class com.google.common.base.CharMatcher.Negated
countIn, matches, matchesAllOf, matchesNoneOf, negate, setBits, toString
-
Methods inherited from class com.google.common.base.CharMatcher
and, any, anyOf, apply, ascii, breakingWhitespace, collapseFrom, digit, forPredicate, indexIn, indexIn, inRange, invisible, is, isNot, javaDigit, javaIsoControl, javaLetter, javaLetterOrDigit, javaLowerCase, javaUpperCase, lastIndexIn, matchesAnyOf, none, noneOf, or, precomputedInternal, removeFrom, replaceFrom, replaceFrom, retainFrom, singleWidth, trimAndCollapseFrom, trimFrom, trimLeadingFrom, trimTrailingFrom, whitespace
-
-
-
-
Constructor Detail
-
NegatedFastMatcher
NegatedFastMatcher(CharMatcher original)
-
-
Method Detail
-
precomputed
public final CharMatcher precomputed()
Description copied from class:CharMatcher
Returns achar
matcher functionally equivalent to this one, but which may be faster to query than the original; your mileage may vary. Precomputation takes time and is likely to be worthwhile only if the precomputed matcher is queried many thousands of times.This method has no effect (returns
this
) when called in GWT: it's unclear whether a precomputed matcher is faster, but it certainly consumes more memory, which doesn't seem like a worthwhile tradeoff in a browser.- Overrides:
precomputed
in classCharMatcher
-
-