|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.appserv.management.util.misc.ArrayUtil
public final class ArrayUtil
Provides: - utility to check for equality
Method Summary | ||
---|---|---|
static boolean |
arrayContainsNulls(Object[] array)
|
|
static boolean |
arraysEqual(Object array1,
Object array2)
|
|
static
|
newArray(Class<T> theClass,
int numItems)
|
|
static
|
newArray(T[] items,
int startIndex,
int numItems)
Create a new array from the original. |
|
static
|
newArray(T[] items,
T item)
Create a new array consisting of an original array, and a single new item. |
|
static
|
newArray(T[] items1,
T[] items2)
Create a new array consisting of originals and new. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean arraysEqual(Object array1, Object array2)
public static boolean arrayContainsNulls(Object[] array)
public static <T> T[] newArray(Class<T> theClass, int numItems)
public static <T> T[] newArray(T[] items, int startIndex, int numItems)
items
- the original arraystartIndex
- index of the first itemnumItems
-
public static <T> T[] newArray(T[] items1, T[] items2)
items1
- 1st arrayitems2
- 2nd array
public static <T> T[] newArray(T[] items, T item)
items
- an arrayitem
- an item to append
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.