|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jtheque.utils.collections.ArrayUtils
public final class ArrayUtils
This class provide utility methods to the use of arrays.
| Field Summary | |
|---|---|
static Object[] |
ZERO_LENGTH_ARRAY
|
| Method Summary | ||
|---|---|---|
static
|
copyOf(T[] array)
Return a copy of the array. |
|
static int |
indexOf(Object object,
Object[] tab)
Return the index of the object on the tab. |
|
static boolean |
isEmpty(Object[] array)
Test if the array is empty or contains only null values. |
|
static void |
reverse(int[] array)
Reverse the array. |
|
static void |
reverse(Object[] array)
Inverse the order of the array and return it. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Object[] ZERO_LENGTH_ARRAY
| Method Detail |
|---|
public static void reverse(Object[] array)
array - The array to inverse.
public static int indexOf(Object object,
Object[] tab)
object - The object to search for.tab - The tab to search in.
public static void reverse(int[] array)
array - The array to reverse.public static boolean isEmpty(Object[] array)
null values.
array - The array to test.
null values.public static <T> T[] copyOf(T[] array)
T - The type of objects.array - The array to copy.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||