|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.Array
public final class Array
This class provides convenience methods for handling arrays
and serves as an extension to the Arrays
class of Java.
Method Summary | ||
---|---|---|
static
|
add(T[] ar,
T e)
Resizes an array and adds an entry at the end. |
|
static int[] |
createOrder(byte[][] tok,
boolean num,
boolean asc)
Sorts the specified tokens and returns an integer array with offsets to of the sorted tokens. |
|
static int[] |
createOrder(double[] tok,
boolean asc)
Sorts the specified numeric tokens and returns an integer array with offsets to of the sorted tokens. |
|
static
|
delete(T[] ar,
int p)
Removes an array entry at the specified position. |
|
static void |
move(Object ar,
int pos,
int off,
int l)
Moves entries inside an array. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> T[] add(T[] ar, T e)
T
- array typear
- array to be resizede
- entry to be added
public static void move(Object ar, int pos, int off, int l)
ar
- arraypos
- positionoff
- move offsetl
- lengthpublic static <T> T[] delete(T[] ar, int p)
T
- array typear
- array to be resizedp
- position
public static int[] createOrder(byte[][] tok, boolean num, boolean asc)
tok
- token array to sort bynum
- numeric sortasc
- ascending
public static int[] createOrder(double[] tok, boolean asc)
tok
- token array to sort byasc
- ascending
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |