|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.mk.util.ArrayUtils
public class ArrayUtils
Array utility methods.
| Field Summary | |
|---|---|
static int[] |
EMPTY_INTEGER_ARRAY
|
static long[] |
EMPTY_LONG_ARRAY
|
static String[] |
EMPTY_STRING_ARRAY
|
| Constructor Summary | |
|---|---|
ArrayUtils()
|
|
| Method Summary | ||
|---|---|---|
static int[] |
arrayInsert(int[] values,
int index,
int x)
Insert an element into a clone of the array at the given position. |
|
static long[] |
arrayInsert(long[] values,
int index,
long x)
Insert an element into a clone of the array at the given position. |
|
static String[] |
arrayInsert(String[] values,
int index,
String x)
Insert an element into a clone of the array at the given position. |
|
static
|
arrayInsert(T[] values,
int index,
T x)
Insert an element into a clone of the array at the given position. |
|
static int[] |
arrayRemove(int[] values,
int index)
Remove an element from a clone of the array at the given position. |
|
static long[] |
arrayRemove(long[] values,
int index)
Remove an element from a clone of the array at the given position. |
|
static String[] |
arrayRemove(String[] values,
int index)
Remove an element from a clone of the array at the given position. |
|
static
|
arrayRemove(T[] values,
int index)
Remove an element from a clone of the array at the given position. |
|
static
|
arrayReplace(T[] values,
int index,
T x)
Replace an element in a clone of the array at the given position. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String[] EMPTY_STRING_ARRAY
public static final long[] EMPTY_LONG_ARRAY
public static final int[] EMPTY_INTEGER_ARRAY
| Constructor Detail |
|---|
public ArrayUtils()
| Method Detail |
|---|
public static <T> T[] arrayReplace(T[] values,
int index,
T x)
values - the valuesindex - the indexx - the value to add
public static int[] arrayInsert(int[] values,
int index,
int x)
values - the valuesindex - the indexx - the value to add
public static long[] arrayInsert(long[] values,
int index,
long x)
values - the valuesindex - the indexx - the value to add
public static <T> T[] arrayInsert(T[] values,
int index,
T x)
values - the valuesindex - the indexx - the value to add
public static String[] arrayInsert(String[] values,
int index,
String x)
values - the valuesindex - the indexx - the value to add
public static int[] arrayRemove(int[] values,
int index)
values - the valuesindex - the index
public static <T> T[] arrayRemove(T[] values,
int index)
values - the valuesindex - the index
public static long[] arrayRemove(long[] values,
int index)
values - the valuesindex - the index
public static String[] arrayRemove(String[] values,
int index)
values - the valuesindex - the index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||