Uses of Class
com.google.common.base.CharMatcher
-
Packages that use CharMatcher Package Description com.google.common.base Basic utility libraries and interfaces.com.google.common.net This package contains utility methods and classes for working with net addresses (numeric IP and domain names).com.google.common.testing This package contains testing utilities. -
-
Uses of CharMatcher in com.google.common.base
Subclasses of CharMatcher in com.google.common.base Modifier and Type Class Description private static class
CharMatcher.And
Implementation ofand(CharMatcher)
.private static class
CharMatcher.Any
Implementation ofany()
.private static class
CharMatcher.AnyOf
Implementation ofanyOf(CharSequence)
for three or more characters.private static class
CharMatcher.Ascii
Implementation ofascii()
.private static class
CharMatcher.BitSetMatcher
Fast matcher using aBitSet
table of matching characters.private static class
CharMatcher.BreakingWhitespace
Implementation ofbreakingWhitespace()
.private static class
CharMatcher.Digit
Implementation ofdigit()
.(package private) static class
CharMatcher.FastMatcher
A matcher for which precomputation will not yield any significant benefit.private static class
CharMatcher.ForPredicate
Implementation offorPredicate(Predicate)
.private static class
CharMatcher.InRange
Implementation ofinRange(char, char)
.private static class
CharMatcher.Invisible
Implementation ofinvisible()
.private static class
CharMatcher.Is
Implementation ofis(char)
.private static class
CharMatcher.IsEither
Implementation ofanyOf(CharSequence)
for exactly two characters.private static class
CharMatcher.IsNot
Implementation ofisNot(char)
.private static class
CharMatcher.JavaDigit
Implementation ofjavaDigit()
.private static class
CharMatcher.JavaIsoControl
Implementation ofjavaIsoControl()
.private static class
CharMatcher.JavaLetter
Implementation ofjavaLetter()
.private static class
CharMatcher.JavaLetterOrDigit
Implementation ofjavaLetterOrDigit()
.private static class
CharMatcher.JavaLowerCase
Implementation ofjavaLowerCase()
.private static class
CharMatcher.JavaUpperCase
Implementation ofjavaUpperCase()
.(package private) static class
CharMatcher.NamedFastMatcher
CharMatcher.FastMatcher
which overridestoString()
with a custom name.private static class
CharMatcher.Negated
Implementation ofCharMatcher.Negated.negate()
.(package private) static class
CharMatcher.NegatedFastMatcher
Negation of aCharMatcher.FastMatcher
.private static class
CharMatcher.None
Implementation ofnone()
.private static class
CharMatcher.Or
Implementation ofor(CharMatcher)
.private static class
CharMatcher.RangesMatcher
Implementation that matches characters that fall within multiple ranges.private static class
CharMatcher.SingleWidth
Implementation ofsingleWidth()
.(package private) static class
CharMatcher.Whitespace
Implementation ofwhitespace()
.(package private) class
SmallCharMatcher
An immutable version of CharMatcher for smallish sets of characters that uses a hash table with linear probing to check for matches.Fields in com.google.common.base declared as CharMatcher Modifier and Type Field Description static CharMatcher
CharMatcher. ANY
Deprecated.Useany()
instead.static CharMatcher
CharMatcher. ASCII
Deprecated.Useascii()
instead.static CharMatcher
CharMatcher. BREAKING_WHITESPACE
Deprecated.UsebreakingWhitespace()
instead.static CharMatcher
CharMatcher. DIGIT
Deprecated.Many digits are supplementary characters; see the class documentation.(package private) CharMatcher
CharMatcher.And. first
(package private) CharMatcher
CharMatcher.Or. first
(package private) static CharMatcher
CharMatcher.BreakingWhitespace. INSTANCE
static CharMatcher
CharMatcher. INVISIBLE
Deprecated.Most invisible characters are supplementary characters; see the class documentation.static CharMatcher
CharMatcher. JAVA_DIGIT
Deprecated.Many digits are supplementary characters; see the class documentation.static CharMatcher
CharMatcher. JAVA_ISO_CONTROL
Deprecated.UsejavaIsoControl()
instead.static CharMatcher
CharMatcher. JAVA_LETTER
Deprecated.Most letters are supplementary characters; see the class documentation.static CharMatcher
CharMatcher. JAVA_LETTER_OR_DIGIT
Deprecated.Most letters and digits are supplementary characters; see the class documentation.static CharMatcher
CharMatcher. JAVA_LOWER_CASE
Deprecated.Some lowercase letters are supplementary characters; see the class documentation.static CharMatcher
CharMatcher. JAVA_UPPER_CASE
Deprecated.Some uppercase letters are supplementary characters; see the class documentation.static CharMatcher
CharMatcher. NONE
Deprecated.Usenone()
instead.(package private) CharMatcher
CharMatcher.Negated. original
(package private) CharMatcher
CharMatcher.And. second
(package private) CharMatcher
CharMatcher.Or. second
static CharMatcher
CharMatcher. SINGLE_WIDTH
Deprecated.Many such characters are supplementary characters; see the class documentation.(package private) CharMatcher
Splitter.SplittingIterator. trimmer
private CharMatcher
Splitter. trimmer
static CharMatcher
CharMatcher. WHITESPACE
Deprecated.Usewhitespace()
instead.private CharMatcher
CaseFormat. wordBoundary
Methods in com.google.common.base that return CharMatcher Modifier and Type Method Description CharMatcher
CharMatcher. and(CharMatcher other)
Returns a matcher that matches any character matched by both this matcher andother
.CharMatcher
CharMatcher.Any. and(CharMatcher other)
CharMatcher
CharMatcher.Is. and(CharMatcher other)
CharMatcher
CharMatcher.IsNot. and(CharMatcher other)
CharMatcher
CharMatcher.None. and(CharMatcher other)
static CharMatcher
CharMatcher. any()
Matches any character.static CharMatcher
CharMatcher. anyOf(java.lang.CharSequence sequence)
Returns achar
matcher that matches any BMP character present in the given character sequence.static CharMatcher
CharMatcher. ascii()
Determines whether a character is ASCII, meaning that its code point is less than 128.static CharMatcher
CharMatcher. breakingWhitespace()
Determines whether a character is a breaking whitespace (that is, a whitespace which can be interpreted as a break between words for formatting purposes).static CharMatcher
CharMatcher. digit()
Deprecated.Many digits are supplementary characters; see the class documentation.static CharMatcher
CharMatcher. forPredicate(Predicate<? super java.lang.Character> predicate)
Returns a matcher with identical behavior to the givenCharacter
-based predicate, but which operates on primitivechar
instances instead.(package private) static CharMatcher
SmallCharMatcher. from(java.util.BitSet chars, java.lang.String description)
static CharMatcher
CharMatcher. inRange(char startInclusive, char endInclusive)
Returns achar
matcher that matches any character in a given BMP range (both endpoints are inclusive).static CharMatcher
CharMatcher. invisible()
Deprecated.Most invisible characters are supplementary characters; see the class documentation.static CharMatcher
CharMatcher. is(char match)
Returns achar
matcher that matches only one specified BMP character.static CharMatcher
CharMatcher. isNot(char match)
Returns achar
matcher that matches any character except the BMP character specified.static CharMatcher
CharMatcher. javaDigit()
Deprecated.Many digits are supplementary characters; see the class documentation.static CharMatcher
CharMatcher. javaIsoControl()
Determines whether a character is an ISO control character as specified byCharacter.isISOControl(char)
.static CharMatcher
CharMatcher. javaLetter()
Deprecated.Most letters are supplementary characters; see the class documentation.static CharMatcher
CharMatcher. javaLetterOrDigit()
Deprecated.Most letters and digits are supplementary characters; see the class documentation.static CharMatcher
CharMatcher. javaLowerCase()
Deprecated.Some lowercase characters are supplementary characters; see the class documentation.static CharMatcher
CharMatcher. javaUpperCase()
Deprecated.Some uppercase characters are supplementary characters; see the class documentation.CharMatcher
CharMatcher.Any. negate()
CharMatcher
CharMatcher.FastMatcher. negate()
CharMatcher
CharMatcher.Is. negate()
CharMatcher
CharMatcher.IsNot. negate()
CharMatcher
CharMatcher. negate()
Returns a matcher that matches any character not matched by this matcher.CharMatcher
CharMatcher.Negated. negate()
CharMatcher
CharMatcher.None. negate()
static CharMatcher
CharMatcher. none()
Matches no characters.static CharMatcher
CharMatcher. noneOf(java.lang.CharSequence sequence)
Returns achar
matcher that matches any BMP character not present in the given character sequence.CharMatcher
CharMatcher.Any. or(CharMatcher other)
CharMatcher
CharMatcher.Is. or(CharMatcher other)
CharMatcher
CharMatcher.IsNot. or(CharMatcher other)
CharMatcher
CharMatcher.None. or(CharMatcher other)
CharMatcher
CharMatcher. or(CharMatcher other)
Returns a matcher that matches any character matched by either this matcher orother
.(package private) static CharMatcher
Platform. precomputeCharMatcher(CharMatcher matcher)
CharMatcher
CharMatcher.FastMatcher. precomputed()
CharMatcher
CharMatcher.NegatedFastMatcher. precomputed()
CharMatcher
CharMatcher. precomputed()
Returns achar
matcher functionally equivalent to this one, but which may be faster to query than the original; your mileage may vary.(package private) CharMatcher
CharMatcher. precomputedInternal()
This is the actual implementation ofprecomputed()
, but we bounce calls through a method onPlatform
so that we can have different behavior in GWT.private static CharMatcher
CharMatcher. precomputedPositive(int totalCharacters, java.util.BitSet table, java.lang.String description)
Helper method forprecomputedInternal()
that doesn't test if the negation is cheaper.static CharMatcher
CharMatcher. singleWidth()
Deprecated.Many such characters are supplementary characters; see the class documentation.static CharMatcher
CharMatcher. whitespace()
Determines whether a character is whitespace according to the latest Unicode standard, as illustrated here.Methods in com.google.common.base with parameters of type CharMatcher Modifier and Type Method Description CharMatcher
CharMatcher. and(CharMatcher other)
Returns a matcher that matches any character matched by both this matcher andother
.CharMatcher
CharMatcher.Any. and(CharMatcher other)
CharMatcher
CharMatcher.Is. and(CharMatcher other)
CharMatcher
CharMatcher.IsNot. and(CharMatcher other)
CharMatcher
CharMatcher.None. and(CharMatcher other)
static Splitter
Splitter. on(CharMatcher separatorMatcher)
Returns a splitter that considers any single character matched by the givenCharMatcher
to be a separator.CharMatcher
CharMatcher.Any. or(CharMatcher other)
CharMatcher
CharMatcher.Is. or(CharMatcher other)
CharMatcher
CharMatcher.IsNot. or(CharMatcher other)
CharMatcher
CharMatcher.None. or(CharMatcher other)
CharMatcher
CharMatcher. or(CharMatcher other)
Returns a matcher that matches any character matched by either this matcher orother
.(package private) static CharMatcher
Platform. precomputeCharMatcher(CharMatcher matcher)
Splitter
Splitter. trimResults(CharMatcher trimmer)
Returns a splitter that behaves equivalently tothis
splitter, but removes all leading or trailing characters matching the givenCharMatcher
from each returned substring.Constructors in com.google.common.base with parameters of type CharMatcher Constructor Description And(CharMatcher a, CharMatcher b)
CaseFormat(CharMatcher wordBoundary, java.lang.String wordSeparator)
Negated(CharMatcher original)
NegatedFastMatcher(CharMatcher original)
Or(CharMatcher a, CharMatcher b)
Splitter(Splitter.Strategy strategy, boolean omitEmptyStrings, CharMatcher trimmer, int limit)
-
Uses of CharMatcher in com.google.common.net
Fields in com.google.common.net declared as CharMatcher Modifier and Type Field Description private static CharMatcher
InternetDomainName. DASH_MATCHER
private static CharMatcher
InternetDomainName. DOTS_MATCHER
private static CharMatcher
MediaType. LINEAR_WHITE_SPACE
private static CharMatcher
InternetDomainName. PART_CHAR_MATCHER
private static CharMatcher
MediaType. QUOTED_TEXT_MATCHER
private static CharMatcher
MediaType. TOKEN_MATCHER
Matcher for type, subtype and attributes.Methods in com.google.common.net with parameters of type CharMatcher Modifier and Type Method Description (package private) char
MediaType.Tokenizer. consumeCharacter(CharMatcher matcher)
(package private) java.lang.String
MediaType.Tokenizer. consumeToken(CharMatcher matcher)
(package private) java.lang.String
MediaType.Tokenizer. consumeTokenIfPresent(CharMatcher matcher)
-
Uses of CharMatcher in com.google.common.testing
Methods in com.google.common.testing that return CharMatcher Modifier and Type Method Description private CharMatcher
FreshValueGenerator. generateCharMatcher()
-