public abstract class BaseArrayList<E> extends AbstractList<E> implements RandomAccess, Cloneable, Serializable
ArrayList
functionality (which we'd just extend directly if those pig fuckers hadn't
made the instance variables private).
Note: Does not support null elements.
| Constructor and Description |
|---|
BaseArrayList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E o) |
void |
add(int index,
E element) |
void |
clear() |
BaseArrayList<E> |
clone() |
boolean |
contains(Object o) |
E |
get(int index) |
int |
indexOf(Object o) |
boolean |
isEmpty() |
E |
remove(int index) |
boolean |
remove(Object o) |
E |
set(int index,
E element) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] target) |
addAll, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, subListaddAll, containsAll, removeAll, retainAll, toStringaddAll, containsAll, removeAll, replaceAll, retainAll, sort, spliteratorparallelStream, removeIf, streampublic int size()
size in interface Collection<E>size in interface List<E>size in class AbstractCollection<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface List<E>isEmpty in class AbstractCollection<E>public boolean contains(Object o)
contains in interface Collection<E>contains in interface List<E>contains in class AbstractCollection<E>public Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>toArray in class AbstractCollection<E>public <T> T[] toArray(T[] target)
toArray in interface Collection<E>toArray in interface List<E>toArray in class AbstractCollection<E>public void clear()
clear in interface Collection<E>clear in interface List<E>clear in class AbstractList<E>public boolean add(E o)
add in interface Collection<E>add in interface List<E>add in class AbstractList<E>public boolean remove(Object o)
remove in interface Collection<E>remove in interface List<E>remove in class AbstractCollection<E>public E get(int index)
public void add(int index,
E element)
public E remove(int index)
public int indexOf(Object o)
public BaseArrayList<E> clone()
Copyright © 2015. All rights reserved.