Package | Description |
---|---|
com.google.common.base |
Basic utility libraries and interfaces.
|
com.google.common.io |
This package contains utility methods and classes for working with Java I/O;
for example input streams, output streams, readers, writers, and files.
|
com.google.common.net |
This package contains utility methods and classes for working with net
addresses (numeric IP and domain names).
|
Modifier and Type | Class and Description |
---|---|
private static class |
CharMatcher.And |
private static class |
CharMatcher.BitSetMatcher |
(package private) static class |
CharMatcher.FastMatcher
A matcher for which precomputation will not yield any significant benefit.
|
(package private) static class |
CharMatcher.NegatedFastMatcher |
private static class |
CharMatcher.NegatedMatcher |
private static class |
CharMatcher.Or |
private static class |
CharMatcher.RangesMatcher |
(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 |
---|---|
static CharMatcher |
CharMatcher.ANY
Matches any character.
|
static CharMatcher |
CharMatcher.ASCII
Determines whether a character is ASCII, meaning that its code point is less than 128.
|
static CharMatcher |
CharMatcher.BREAKING_WHITESPACE
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
Determines whether a character is a digit according to
Unicode.
|
(package private) CharMatcher |
CharMatcher.And.first |
(package private) CharMatcher |
CharMatcher.Or.first |
static CharMatcher |
CharMatcher.INVISIBLE
Determines whether a character is invisible; that is, if its Unicode category is any of
SPACE_SEPARATOR, LINE_SEPARATOR, PARAGRAPH_SEPARATOR, CONTROL, FORMAT, SURROGATE, and
PRIVATE_USE according to ICU4J.
|
static CharMatcher |
CharMatcher.JAVA_DIGIT
Determines whether a character is a digit according to Java's definition.
|
static CharMatcher |
CharMatcher.JAVA_ISO_CONTROL
Determines whether a character is an ISO control character as specified by
Character.isISOControl(char) . |
static CharMatcher |
CharMatcher.JAVA_LETTER
Determines whether a character is a letter according to Java's definition.
|
static CharMatcher |
CharMatcher.JAVA_LETTER_OR_DIGIT
Determines whether a character is a letter or digit according to Java's definition.
|
static CharMatcher |
CharMatcher.JAVA_LOWER_CASE
Determines whether a character is lower case according to Java's definition.
|
static CharMatcher |
CharMatcher.JAVA_UPPER_CASE
Determines whether a character is upper case according to Java's definition.
|
static CharMatcher |
CharMatcher.NONE
Matches no characters.
|
(package private) CharMatcher |
CharMatcher.NegatedMatcher.original |
(package private) CharMatcher |
CharMatcher.And.second |
(package private) CharMatcher |
CharMatcher.Or.second |
static CharMatcher |
CharMatcher.SINGLE_WIDTH
Determines whether a character is single-width (not double-width).
|
private CharMatcher |
Splitter.trimmer |
(package private) CharMatcher |
Splitter.SplittingIterator.trimmer |
static CharMatcher |
CharMatcher.WHITESPACE
Determines whether a character is whitespace according to the latest Unicode standard, as
illustrated
here.
|
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 . |
static CharMatcher |
CharMatcher.anyOf(java.lang.CharSequence sequence)
Returns a
char matcher that matches any character present in the given character
sequence. |
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 range (both endpoints are
inclusive). |
(package private) static CharMatcher |
CharMatcher.inRange(char startInclusive,
char endInclusive,
java.lang.String description) |
static CharMatcher |
CharMatcher.is(char match)
Returns a
char matcher that matches only one specified character. |
private static CharMatcher |
CharMatcher.isEither(char match1,
char match2) |
static CharMatcher |
CharMatcher.isNot(char match)
Returns a
char matcher that matches any character except the one specified. |
CharMatcher |
CharMatcher.negate()
Returns a matcher that matches any character not matched by this matcher.
|
CharMatcher |
CharMatcher.NegatedMatcher.negate() |
CharMatcher |
CharMatcher.FastMatcher.negate() |
static CharMatcher |
CharMatcher.noneOf(java.lang.CharSequence sequence)
Returns a
char matcher that matches any 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 . |
(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. |
(package private) CharMatcher |
CharMatcher.withToString(java.lang.String description)
Subclasses should provide a new CharMatcher with the same characteristics as
this ,
but with their toString method overridden with the new description. |
(package private) CharMatcher |
CharMatcher.NegatedMatcher.withToString(java.lang.String description) |
(package private) CharMatcher |
CharMatcher.And.withToString(java.lang.String description) |
(package private) CharMatcher |
CharMatcher.Or.withToString(java.lang.String description) |
(package private) CharMatcher |
CharMatcher.NegatedFastMatcher.withToString(java.lang.String description) |
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 . |
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 . |
(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) |
And(CharMatcher a,
CharMatcher b,
java.lang.String description) |
CaseFormat(CharMatcher wordBoundary,
java.lang.String wordSeparator) |
NegatedFastMatcher(CharMatcher original) |
NegatedFastMatcher(java.lang.String toString,
CharMatcher original) |
NegatedMatcher(CharMatcher original) |
NegatedMatcher(java.lang.String toString,
CharMatcher original) |
Or(CharMatcher a,
CharMatcher b) |
Or(CharMatcher a,
CharMatcher b,
java.lang.String description) |
Splitter(Splitter.Strategy strategy,
boolean omitEmptyStrings,
CharMatcher trimmer,
int limit) |
Modifier and Type | Class and Description |
---|---|
private static class |
BaseEncoding.Alphabet |
Modifier and Type | Field and Description |
---|---|
private CharMatcher |
BaseEncoding.SeparatedBaseEncoding.separatorChars |
Modifier and Type | Method and Description |
---|---|
(package private) abstract CharMatcher |
BaseEncoding.padding() |
(package private) CharMatcher |
BaseEncoding.StandardBaseEncoding.padding() |
(package private) CharMatcher |
BaseEncoding.SeparatedBaseEncoding.padding() |
Modifier and Type | Method and Description |
---|---|
(package private) static GwtWorkarounds.CharInput |
BaseEncoding.ignoringInput(GwtWorkarounds.CharInput delegate,
CharMatcher toIgnore) |
Modifier and Type | Field and 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.
|
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) |