|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.assertions.ArrayInspection
public final class ArrayInspection
Utility methods for arrays.
| Method Summary | |
|---|---|
static Object[] |
copy(Object array)
Copies the contents of the given array into an array of objects. |
static int |
sizeOf(Object array)
Returns the size of the given array. |
static List<Object> |
toList(Object array)
Copies the contents of the given array into a list. |
static Set<Object> |
toSet(Object array)
Copies the contents of the given array into a list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Object[] copy(Object array)
array - the array to copy.
IllegalArgumentException - if the given object is not an array.public static List<Object> toList(Object array)
array - the array to copy.
IllegalArgumentException - if the given object is not an array.public static Set<Object> toSet(Object array)
array - the array to copy.
IllegalArgumentException - if the given object is not an array.public static int sizeOf(Object array)
array - the array.
NullPointerException - if the given array is null.
IllegalArgumentException - if the given object is not an array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||