|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.ArrayIndex
The ArrayIndex
Field Summary | |
protected int[] |
index
The buffer of index. |
protected int |
size
The size of buffer. |
Constructor Summary | |
ArrayIndex(int buffer_size)
Constructs an ArrayIndex with a specified size of
buffer. |
Method Summary | |
int |
get(int i)
Gets the indicated location of the specified index. |
void |
swap(int i,
int j)
Swaps two indices. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected int[] index
protected int size
Constructor Detail |
public ArrayIndex(int buffer_size)
ArrayIndex
with a specified size of
buffer. The buffer is initialized so that i-th index indicates
the i-th location.buffer_size
- the size of buffer to create.Method Detail |
public int get(int i)
i
- the index.public void swap(int i, int j)
i
- one of the indices to swap.j
- one of the indices to swap.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |