public final class ArrayInspection extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.