Java com.google.common.base CharMatcher fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.base CharMatcher fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.base CharMatcher.

The text is from its open source code.

Subclass

com.google.common.base.CharMatcher has subclasses.
Click this link to see all its subclasses.

Field

CharMatcherWHITESPACE
Determines whether a character is whitespace according to the latest Unicode standard, as illustrated here.
CharMatcherBREAKING_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).
CharMatcherASCII
Determines whether a character is ASCII, meaning that its code point is less than 128.
CharMatcherDIGIT
Determines whether a character is a digit according to Unicode.
CharMatcherJAVA_DIGIT
Determines whether a character is a digit according to Character#isDigit(char) Java's definition .
CharMatcherJAVA_LETTER
Determines whether a character is a letter according to Character#isLetter(char) Java's definition .
CharMatcherJAVA_LETTER_OR_DIGIT
Determines whether a character is a letter or digit according to Character#isLetterOrDigit(char) Java's definition .
CharMatcherJAVA_UPPER_CASE
Determines whether a character is upper case according to Character#isUpperCase(char) Java's definition .
CharMatcherJAVA_LOWER_CASE
Determines whether a character is lower case according to Character#isLowerCase(char) Java's definition .
CharMatcherJAVA_ISO_CONTROL
Determines whether a character is an ISO control character as specified by Character#isISOControl(char) .
CharMatcherINVISIBLE
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.
CharMatcherNONE
Matches no characters.

Constructor

CharMatcher()
Constructor for use by subclasses.

Method

CharMatcheranyOf(final CharSequence sequence)
Returns a char matcher that matches any character present in the given character sequence.
booleanapply(Character character)
CharMatcherbreakingWhitespace()
Determines whether a character is a breaking whitespace (that is, a whitespace which can be interpreted as a break between words for formatting purposes).
StringcollapseFrom(CharSequence sequence, char replacement)
Returns a string copy of the input character sequence, with each group of consecutive characters that match this matcher replaced by a single replacement character.
intcountIn(CharSequence sequence)
Returns the number of matching characters found in a character sequence.
CharMatcherforPredicate(final Predicate predicate)
Returns a matcher with identical behavior to the given Character -based predicate, but which operates on primitive char instances instead.
intindexIn(CharSequence sequence, int start)
Returns the index of the first matching character in a character sequence, starting from a given position, or -1 if no character matches after that position.
intindexIn(CharSequence sequence)
Returns the index of the first matching character in a character sequence, or -1 if no matching character is present.
CharMatcherinRange(final char startInclusive, final char endInclusive)
Returns a char matcher that matches any character in a given range (both endpoints are inclusive).
CharMatcheris(final char match)
Returns a char matcher that matches only one specified character.
CharMatcherisNot(final char match)
Returns a char matcher that matches any character except the one specified.
CharMatcherjavaDigit()
Determines whether a character is a digit according to Character#isDigit(char) Java's definition .
CharMatcherjavaIsoControl()
Determines whether a character is an ISO control character as specified by Character#isISOControl(char) .
CharMatcherjavaLetterOrDigit()
Determines whether a character is a letter or digit according to Character#isLetterOrDigit(char) Java's definition .
CharMatcherjavaLowerCase()
Determines whether a character is lower case according to Character#isLowerCase(char) Java's definition .
CharMatcherjavaUpperCase()
Determines whether a character is upper case according to Character#isUpperCase(char) Java's definition .
booleanmatches(char c)
Determines a true or false value for the given character.
booleanmatchesAllOf(CharSequence sequence)
Returns true if a character sequence contains only matching characters.
booleanmatchesAnyOf(CharSequence sequence)
Returns true if a character sequence contains at least one matching character.
booleanmatchesNoneOf(CharSequence sequence)
Returns true if a character sequence contains no matching characters.
CharMatchernegate()
Returns a matcher that matches any character not matched by this matcher.
CharMatchernoneOf(CharSequence sequence)
Returns a char matcher that matches any character not present in the given character sequence.
CharMatcheror(CharMatcher other)
Returns a matcher that matches any character matched by either this matcher or other .
StringremoveFrom(CharSequence sequence)
Returns a string containing all non-matching characters of a character sequence, in order.
StringreplaceFrom(CharSequence sequence, char replacement)
Returns a string copy of the input character sequence, with each character that matches this matcher replaced by a given replacement character.
StringreplaceFrom(CharSequence sequence, CharSequence replacement)
Returns a string copy of the input character sequence, with each character that matches this matcher replaced by a given replacement sequence.
StringretainFrom(CharSequence sequence)
Returns a string containing all matching characters of a character sequence, in order.
StringtrimFrom(CharSequence sequence)
Returns a substring of the input character sequence that omits all characters this matcher matches from the beginning and from the end of the string.
StringtrimLeadingFrom(CharSequence sequence)
Returns a substring of the input character sequence that omits all characters this matcher matches from the beginning of the string.
StringtrimTrailingFrom(CharSequence sequence)
Returns a substring of the input character sequence that omits all characters this matcher matches from the end of the string.