|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.util.IntList
public final class IntList
This is a simple container for native int values.
| Field Summary | |
|---|---|
int[] |
list
Value array. |
int |
size
Current array size. |
| Constructor Summary | |
|---|---|
IntList()
Default constructor. |
|
IntList(int v)
Default constructor. |
|
IntList(int[] v)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
add(int v)
Adds next value. |
boolean |
contains(int v)
Checks if the specified value is found in the list. |
int[] |
finish()
Finishes the int array. |
void |
init()
Initializes the iterator. |
boolean |
more()
Checks if the iterator offers more values. |
int |
next()
Returns next iterated value. |
void |
reset()
Resets the integer list. |
void |
sort(byte[][] tok,
boolean num,
boolean asc)
Sorts the array in the order of the specified token array. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int[] list
public int size
| Constructor Detail |
|---|
public IntList()
public IntList(int v)
v - initial list valuepublic IntList(int[] v)
v - initial list values| Method Detail |
|---|
public void add(int v)
v - value to be addedpublic boolean contains(int v)
v - value to be added
public int[] finish()
public void init()
public boolean more()
public int next()
public void reset()
public void sort(byte[][] tok,
boolean num,
boolean asc)
tok - token array to sort bynum - numeric sortasc - ascending
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||