public static class Conversions.WrappedPrimitiveArray extends AbstractList<Object> implements RandomAccess
modCount| Modifier | Constructor and Description |
|---|---|
protected |
Conversions.WrappedPrimitiveArray(Object array)
Internal constructor for
Conversions.WrappedPrimitiveArray. |
| Modifier and Type | Method and Description |
|---|---|
static Conversions.WrappedPrimitiveArray |
create(Object array)
Creates a new
Conversions.WrappedPrimitiveArray that is backed by the given primitive array. |
Object |
get(int index) |
Object |
internalToArray()
Returns the underlying array in an unsafe manner.
|
Object |
set(int index,
Object element) |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringprotected Conversions.WrappedPrimitiveArray(Object array)
Conversions.WrappedPrimitiveArray.array - the to-be-wrapped array. May be null which will cause any method on the created
object to fail with a NullPointerException.@Pure public static Conversions.WrappedPrimitiveArray create(Object array)
Conversions.WrappedPrimitiveArray that is backed by the given primitive array.array - the to-be-wrapped array. May be null which will cause any method on the resulting
object to fail.null.public Object get(int index)
get in interface List<Object>get in class AbstractList<Object>NullPointerException - if the wrapped array was null.IndexOutOfBoundsExceptionpublic Object set(int index, Object element)
set in interface List<Object>set in class AbstractList<Object>NullPointerException - if the wrapped array was null.ClassCastExceptionNullPointerExceptionIllegalArgumentExceptionIndexOutOfBoundsExceptionpublic int size()
size in interface Collection<Object>size in interface List<Object>size in class AbstractCollection<Object>NullPointerException - if the wrapped array was null.Copyright © 2015. All Rights Reserved.