public class Arrays2 extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Set<T> |
asSet(T... array) |
static boolean |
containsAll(Object[] array,
Object... values) |
static <T> T[] |
copyOf(T[] original,
int newLength)
Copies the specified array, truncating or padding with nulls (if necessary)
so the copy has the specified length.
|
static <T,U> T[] |
copyOf(U[] original,
int newLength,
Class<? extends T[]> newType)
Copies the specified array, truncating or padding with nulls (if necessary)
so the copy has the specified length.
|
static boolean |
unorderedEquals(Object[] array,
Object... values) |
public static <T> Set<T> asSet(T... array)
public static <T> T[] copyOf(T[] original,
int newLength)
original - the array to be copiednewLength - the length of the copy to be returnedNegativeArraySizeException - if newLength is negativeNullPointerException - if original is nullpublic static <T,U> T[] copyOf(U[] original,
int newLength,
Class<? extends T[]> newType)
original - the array to be copiednewLength - the length of the copy to be returnednewType - the class of the copy to be returnedNegativeArraySizeException - if newLength is negativeNullPointerException - if original is nullArrayStoreException - if an element copied from
original is not of a runtime type that can be stored in
an array of class newTypeCopyright © 2014 Seam Framework. All Rights Reserved.