public class ArrayWrapperList
extends java.util.AbstractList<java.lang.Object>
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(int index) |
java.lang.Class<?> |
getComponentType()
Returns the component type of the wrapped array.
|
int |
size() |
static ArrayWrapperList |
wrap(java.lang.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
public static ArrayWrapperList wrap(java.lang.Object array)
ArrayWrapperList
array
- the array to wrap.null
if the given array was already null
.java.lang.IllegalArgumentException
- if the array
is not an array.public java.lang.Object get(int index)
get
in interface java.util.List<java.lang.Object>
get
in class java.util.AbstractList<java.lang.Object>
public int size()
size
in interface java.util.Collection<java.lang.Object>
size
in interface java.util.List<java.lang.Object>
size
in class java.util.AbstractCollection<java.lang.Object>
public java.lang.Class<?> getComponentType()
Copyright © 2007–2018. All rights reserved.