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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
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 © 2014–2019 AssertJ. All rights reserved.