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.
|
Modifier and Type | Class and Description |
---|---|
private static class |
CharMatcher.And
Implementation of
and(CharMatcher) . |
private static class |
CharMatcher.Any
Implementation of
any() . |
private static class |
CharMatcher.AnyOf
Implementation of
anyOf(CharSequence) for three or more characters. |
private static class |
CharMatcher.Ascii
Implementation of
ascii() . |
private static class |
CharMatcher.BitSetMatcher
Fast matcher using a
BitSet table of matching characters. |
private static class |
CharMatcher.BreakingWhitespace
Implementation of
breakingWhitespace() . |
private static class |
CharMatcher.Digit
Implementation of
digit() . |
(package private) static class |
CharMatcher.FastMatcher
A matcher for which precomputation will not yield any significant benefit.
|
private static class |
CharMatcher.ForPredicate
Implementation of
forPredicate(Predicate) . |
private static class |
CharMatcher.InRange
Implementation of
inRange(char, char) . |
private static class |
CharMatcher.Invisible
Implementation of
invisible() . |
private static class |
CharMatcher.Is
Implementation of
is(char) . |
private static class |
CharMatcher.IsEither
Implementation of
anyOf(CharSequence) for exactly two characters. |
private static class |
CharMatcher.IsNot
Implementation of
isNot(char) . |
private static class |
CharMatcher.JavaDigit
Implementation of
javaDigit() . |
private static class |
CharMatcher.JavaIsoControl
Implementation of
javaIsoControl() . |
private static class |
CharMatcher.JavaLetter
Implementation of
javaLetter() . |
private static class |
CharMatcher.JavaLetterOrDigit
Implementation of
javaLetterOrDigit() . |
private static class |
CharMatcher.JavaLowerCase
Implementation of
javaLowerCase() . |
private static class |
CharMatcher.JavaUpperCase
Implementation of
javaUpperCase() . |
(package private) static class |
CharMatcher.NamedFastMatcher
CharMatcher.FastMatcher which overrides toString() with a custom name. |
private static class |
CharMatcher.Negated
Implementation of
CharMatcher.Negated.negate() . |
(package private) static class |
CharMatcher.NegatedFastMatcher
Negation of a
CharMatcher.FastMatcher . |
private static class |
CharMatcher.None
Implementation of
none() . |
private static class |
CharMatcher.Or
Implementation of
or(CharMatcher) . |
private static class |
CharMatcher.RangesMatcher
Implementation that matches characters that fall within multiple ranges.
|
private static class |
CharMatcher.SingleWidth
Implementation of
singleWidth() . |
(package private) static class |
CharMatcher.Whitespace
Implementation of
whitespace() . |
(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.
|
Modifier and Type | Field and Description |
---|---|
(package private) CharMatcher |
CharMatcher.And.first |
(package private) CharMatcher |
CharMatcher.Or.first |
(package private) static CharMatcher |
CharMatcher.BreakingWhitespace.INSTANCE |
(package private) CharMatcher |
CharMatcher.Negated.original |
(package private) CharMatcher |
CharMatcher.And.second |
(package private) CharMatcher |
CharMatcher.Or.second |
private CharMatcher |
Splitter.trimmer |
(package private) CharMatcher |
Splitter.SplittingIterator.trimmer |
private CharMatcher |
CaseFormat.wordBoundary |
Modifier and Type | Method and Description |
---|---|
CharMatcher |
CharMatcher.and(CharMatcher other)
Returns a matcher that matches any character matched by both this matcher and
other . |
CharMatcher |
CharMatcher.Any.and(CharMatcher other) |
CharMatcher |
CharMatcher.None.and(CharMatcher other) |
CharMatcher |
CharMatcher.Is.and(CharMatcher other) |
CharMatcher |
CharMatcher.IsNot.and(CharMatcher other) |
static CharMatcher |
CharMatcher.any()
Matches any character.
|
static CharMatcher |
CharMatcher.anyOf(java.lang.CharSequence sequence)
Returns a
char 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 given
Character -based predicate, but
which operates on primitive char 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 a
char 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 a
char matcher that matches only one specified BMP character. |
static CharMatcher |
CharMatcher.isNot(char match)
Returns a
char 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 by
Character.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.negate()
Returns a matcher that matches any character not matched by this matcher.
|
CharMatcher |
CharMatcher.FastMatcher.negate() |
CharMatcher |
CharMatcher.Any.negate() |
CharMatcher |
CharMatcher.None.negate() |
CharMatcher |
CharMatcher.Negated.negate() |
CharMatcher |
CharMatcher.Is.negate() |
CharMatcher |
CharMatcher.IsNot.negate() |
static CharMatcher |
CharMatcher.none()
Matches no characters.
|
static CharMatcher |
CharMatcher.noneOf(java.lang.CharSequence sequence)
Returns a
char matcher that matches any BMP character not present in the given
character sequence. |
CharMatcher |
CharMatcher.or(CharMatcher other)
Returns a matcher that matches any character matched by either this matcher or
other . |
CharMatcher |
CharMatcher.Any.or(CharMatcher other) |
CharMatcher |
CharMatcher.None.or(CharMatcher other) |
CharMatcher |
CharMatcher.Is.or(CharMatcher other) |
CharMatcher |
CharMatcher.IsNot.or(CharMatcher other) |
(package private) static CharMatcher |
Platform.precomputeCharMatcher(CharMatcher matcher) |
CharMatcher |
CharMatcher.precomputed()
Returns a
char matcher functionally equivalent to this one, but which may be faster to
query than the original; your mileage may vary. |
CharMatcher |
CharMatcher.FastMatcher.precomputed() |
CharMatcher |
CharMatcher.NegatedFastMatcher.precomputed() |
(package private) CharMatcher |
CharMatcher.precomputedInternal()
This is the actual implementation of
precomputed() , but we bounce calls through a method
on Platform 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 for
precomputedInternal() 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.
|
Modifier and Type | Method and Description |
---|---|
CharMatcher |
CharMatcher.and(CharMatcher other)
Returns a matcher that matches any character matched by both this matcher and
other . |
CharMatcher |
CharMatcher.Any.and(CharMatcher other) |
CharMatcher |
CharMatcher.None.and(CharMatcher other) |
CharMatcher |
CharMatcher.Is.and(CharMatcher other) |
CharMatcher |
CharMatcher.IsNot.and(CharMatcher other) |
static Splitter |
Splitter.on(CharMatcher separatorMatcher)
Returns a splitter that considers any single character matched by the given
CharMatcher
to be a separator. |
CharMatcher |
CharMatcher.or(CharMatcher other)
Returns a matcher that matches any character matched by either this matcher or
other . |
CharMatcher |
CharMatcher.Any.or(CharMatcher other) |
CharMatcher |
CharMatcher.None.or(CharMatcher other) |
CharMatcher |
CharMatcher.Is.or(CharMatcher other) |
CharMatcher |
CharMatcher.IsNot.or(CharMatcher other) |
(package private) static CharMatcher |
Platform.precomputeCharMatcher(CharMatcher matcher) |
Splitter |
Splitter.trimResults(CharMatcher trimmer)
Returns a splitter that behaves equivalently to
this splitter, but removes all leading
or trailing characters matching the given CharMatcher from each returned substring. |
Constructor and 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) |
Modifier and Type | Field and Description |
---|---|
private static CharMatcher |
InternetDomainName.DASH_MATCHER |
private static CharMatcher |
InternetDomainName.DIGIT_MATCHER |
private static CharMatcher |
InternetDomainName.DOTS_MATCHER |
private static CharMatcher |
InetAddresses.IPV4_DELIMITER_MATCHER |
private static CharMatcher |
InetAddresses.IPV6_DELIMITER_MATCHER |
private static CharMatcher |
InternetDomainName.LETTER_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.
|
Modifier and Type | Method and 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) |
Modifier and Type | Method and Description |
---|---|
private CharMatcher |
FreshValueGenerator.generateCharMatcher() |