public class ArrayListWrapper extends AbstractList<Object> implements RandomAccess
It overrides some methods because introspection uses this class a a marker for wrapped arrays; the declared class for these method is thus ArrayListWrapper. The methods are get/set/size/contains and indexOf because it is used by contains.
modCount
Constructor and Description |
---|
ArrayListWrapper(Object anArray)
Create the wrapper.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object o) |
Object |
get(int index) |
int |
indexOf(Object o) |
Object |
set(int index,
Object element) |
int |
size() |
add, add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
public Object get(int index)
public int size()
size
in interface Collection<Object>
size
in interface List<Object>
size
in class AbstractCollection<Object>
public int indexOf(Object o)
public boolean contains(Object o)
contains
in interface Collection<Object>
contains
in interface List<Object>
contains
in class AbstractCollection<Object>
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.