public class ArrayListWrapper extends AbstractList<Object>
It overrides all methods because introspection uses this class a a marker for wrapped arrays; the declared class for any method is thus always ArrayListWrapper.
modCount
Constructor and Description |
---|
ArrayListWrapper(Object anArray)
Create the wrapper.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Object element) |
boolean |
add(Object o) |
boolean |
addAll(Collection<? extends Object> c) |
boolean |
addAll(int index,
Collection<? extends Object> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
Object |
get(int index) |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<Object> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<Object> |
listIterator() |
ListIterator<Object> |
listIterator(int index) |
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
Object |
set(int index,
Object element) |
int |
size() |
List<Object> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
equals, hashCode, removeRange
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
replaceAll, sort, spliterator
parallelStream, removeIf, stream
public Object get(int index)
public int size()
size
in interface Collection<Object>
size
in interface List<Object>
size
in class AbstractCollection<Object>
public Object[] toArray()
toArray
in interface Collection<Object>
toArray
in interface List<Object>
toArray
in class AbstractCollection<Object>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<Object>
toArray
in interface List<Object>
toArray
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>
public boolean isEmpty()
isEmpty
in interface Collection<Object>
isEmpty
in interface List<Object>
isEmpty
in class AbstractCollection<Object>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<Object>
containsAll
in interface List<Object>
containsAll
in class AbstractCollection<Object>
public int lastIndexOf(Object o)
lastIndexOf
in interface List<Object>
lastIndexOf
in class AbstractList<Object>
public ListIterator<Object> listIterator()
listIterator
in interface List<Object>
listIterator
in class AbstractList<Object>
public ListIterator<Object> listIterator(int index)
listIterator
in interface List<Object>
listIterator
in class AbstractList<Object>
public boolean add(Object o)
add
in interface Collection<Object>
add
in interface List<Object>
add
in class AbstractList<Object>
public boolean remove(Object o)
remove
in interface Collection<Object>
remove
in interface List<Object>
remove
in class AbstractCollection<Object>
public boolean addAll(Collection<? extends Object> c)
addAll
in interface Collection<Object>
addAll
in interface List<Object>
addAll
in class AbstractCollection<Object>
public boolean addAll(int index, Collection<? extends Object> c)
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<Object>
removeAll
in interface List<Object>
removeAll
in class AbstractCollection<Object>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<Object>
retainAll
in interface List<Object>
retainAll
in class AbstractCollection<Object>
public void clear()
clear
in interface Collection<Object>
clear
in interface List<Object>
clear
in class AbstractList<Object>
public void add(int index, Object element)
Copyright © 2016 Internet2. All rights reserved.