| Modifier and Type | Field and Description |
|---|---|
char |
first
The first character.
|
char |
last
The last character.
|
| Constructor and Description |
|---|
CharRange(char c)
Create a new single-character range with the specified character.
|
CharRange(char first,
char last)
Create a new character range with the specified characters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CharRange other) |
boolean |
contains(char c)
Determine whether this character range contains the specified
character.
|
int |
count()
Determine the number of characters covered by this character
range.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
add, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getLocation, getName, getNode, getProperty, getString, getStringProperty, getTokenText, hasLocation, hasName, hasProperty, hasTraversal, hasVariable, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, properties, remove, removeProperty, set, setLocation, setLocation, setProperty, size, strip, toAnnotation, toList, toString, toToken, writepublic final char first
public final char last
public CharRange(char c)
c - The character.public CharRange(char first,
char last)
first - The first character.last - The last character.public int count()
public boolean contains(char c)
c - The character.true if this character range contains
the specified character.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.ObjectCopyright © 2014. All Rights Reserved.