|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.TokenList
public final class TokenList
This is a simple container for tokens (byte arrays).
Field Summary | |
---|---|
byte[][] |
list
Value array. |
int |
size
Current array size. |
Constructor Summary | |
---|---|
TokenList()
Default constructor. |
|
TokenList(int is)
Constructor. |
Method Summary | |
---|---|
void |
add(byte[] v)
Adds next value. |
boolean |
contains(byte[] v)
Checks if the specified token is found in the list. |
byte[][] |
finish()
Finishes the array. |
java.lang.String[] |
finishString()
Finishes the list as string array. |
java.util.Iterator<byte[]> |
iterator()
|
void |
reset()
Resets the integer list. |
void |
sort(boolean cs)
Sorts the strings. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public byte[][] list
public int size
Constructor Detail |
---|
public TokenList()
public TokenList(int is)
is
- initial size of the listMethod Detail |
---|
public void add(byte[] v)
v
- value to be addedpublic boolean contains(byte[] v)
v
- token to be checked
public byte[][] finish()
public java.lang.String[] finishString()
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object
public void sort(boolean cs)
cs
- respect case sensitivitypublic java.util.Iterator<byte[]> iterator()
iterator
in interface java.lang.Iterable<byte[]>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |