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.
| 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, subListaddAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringaddAll, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic 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–2021 The Apache Software Foundation. All rights reserved.