private static final class BaseEncoding.Alphabet extends CharMatcher
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
bitsPerChar |
(package private) int |
bytesPerChunk |
private char[] |
chars |
(package private) int |
charsPerChunk |
private byte[] |
decodabet |
(package private) int |
mask |
private java.lang.String |
name |
private boolean[] |
validPadding |
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 and Description |
|---|
Alphabet(java.lang.String name,
char[] chars) |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
canDecode(char ch) |
(package private) int |
decode(char ch) |
(package private) char |
encode(int bits) |
boolean |
equals(java.lang.Object other)
Indicates whether another object is equal to this predicate.
|
int |
hashCode() |
private boolean |
hasLowerCase() |
private boolean |
hasUpperCase() |
(package private) boolean |
isValidPaddingStartPosition(int index) |
(package private) BaseEncoding.Alphabet |
lowerCase() |
boolean |
matches(char c)
Determines a true or false value for the given character.
|
java.lang.String |
toString()
Returns a string representation of this
CharMatcher, such as
CharMatcher.or(WHITESPACE, JAVA_DIGIT). |
(package private) BaseEncoding.Alphabet |
upperCase() |
and, any, anyOf, apply, ascii, breakingWhitespace, collapseFrom, countIn, digit, forPredicate, indexIn, indexIn, inRange, invisible, is, isNot, javaDigit, javaIsoControl, javaLetter, javaLetterOrDigit, javaLowerCase, javaUpperCase, lastIndexIn, matchesAllOf, matchesAnyOf, matchesNoneOf, negate, none, noneOf, or, precomputed, removeFrom, replaceFrom, replaceFrom, retainFrom, singleWidth, trimAndCollapseFrom, trimFrom, trimLeadingFrom, trimTrailingFrom, whitespaceprivate final java.lang.String name
private final char[] chars
final int mask
final int bitsPerChar
final int charsPerChunk
final int bytesPerChunk
private final byte[] decodabet
private final boolean[] validPadding
char encode(int bits)
boolean isValidPaddingStartPosition(int index)
boolean canDecode(char ch)
int decode(char ch)
throws BaseEncoding.DecodingException
BaseEncoding.DecodingExceptionprivate boolean hasLowerCase()
private boolean hasUpperCase()
BaseEncoding.Alphabet upperCase()
BaseEncoding.Alphabet lowerCase()
public boolean matches(char c)
CharMatchermatches in class CharMatcherpublic java.lang.String toString()
CharMatcherCharMatcher, such as
CharMatcher.or(WHITESPACE, JAVA_DIGIT).toString in class CharMatcherpublic boolean equals(@Nullable
java.lang.Object other)
PredicateMost implementations will have no reason to override the behavior of Object.equals(java.lang.Object).
However, an implementation may also choose to return true whenever object is a
Predicate that it considers interchangeable with this one. "Interchangeable"
typically means that this.apply(t) == that.apply(t) for all t of type
T). Note that a false result from this method does not imply that the
predicates are known not to be interchangeable.
public int hashCode()
hashCode in class java.lang.Object