public final class USerializedSet extends Object
| Constructor and Description |
|---|
USerializedSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int c)
Returns true if the given USerializedSet contains the given
character.
|
int |
countRanges()
Returns the number of disjoint ranges of characters contained in
the given serialized set.
|
boolean |
getRange(int rangeIndex,
int[] range)
Returns a range of characters contained in the given serialized
set.
|
boolean |
getSet(char[] src,
int srcStart)
Fill in the given serialized set object.
|
void |
setToOne(int c)
Set the USerializedSet to contain the given character (and nothing
else).
|
public final boolean getSet(char[] src,
int srcStart)
src - pointer to start of arraysrcStart - pointer to start of serialized data (length value)public final void setToOne(int c)
public final boolean getRange(int rangeIndex,
int[] range)
rangeIndex - a non-negative integer in the range 0..
getSerializedRangeCount()-1range - variable to receive the data in the rangepublic final boolean contains(int c)
c - the character to test forpublic final int countRanges()