public class ArrayWrapperList extends AbstractList<Object>
modCount
Modifier and Type | Method and Description |
---|---|
Object |
get(int index) |
Class<?> |
getComponentType()
Returns the component type of the wrapped array.
|
int |
size() |
static ArrayWrapperList |
wrap(Object array)
Wraps a given array with a
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
public static ArrayWrapperList wrap(Object array)
ArrayWrapperList
array
- the array to wrap.null
if the given array was already null
.IllegalArgumentException
- if the array
is not an array.public Object get(int index)
public int size()
size
in interface Collection<Object>
size
in interface List<Object>
size
in class AbstractCollection<Object>
public Class<?> getComponentType()
Copyright © 2013 AssertJ. All Rights Reserved.