java.util
Class AbstractList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
- All Implemented Interfaces:
- Iterable<E>, Collection<E>, List<E>
- Direct Known Subclasses:
- AbstractSequentialList, ArrayList, Vector
public abstract class AbstractList<E>
- extends AbstractCollection<E>
- implements List<E>
| Methods inherited from interface java.util.List |
addAll, contains, containsAll, get, isEmpty, remove, removeAll, retainAll, size, toArray, toArray |
modCount
protected transient int modCount
AbstractList
protected AbstractList()
add
public void add(int index,
E element)
- Specified by:
add in interface List<E>
add
public boolean add(E o)
- Specified by:
add in interface Collection<E>- Specified by:
add in interface List<E>- Overrides:
add in class AbstractCollection<E>
addAll
public boolean addAll(int index,
Collection<? extends E> c)
- Specified by:
addAll in interface List<E>
clear
public void clear()
- Specified by:
clear in interface Collection<E>- Specified by:
clear in interface List<E>- Overrides:
clear in class AbstractCollection<E>
equals
public boolean equals(Object o)
- Specified by:
equals in interface Collection<E>- Specified by:
equals in interface List<E>- Overrides:
equals in class Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection<E>- Specified by:
hashCode in interface List<E>- Overrides:
hashCode in class Object
indexOf
public int indexOf(Object o)
- Specified by:
indexOf in interface List<E>
iterator
public Iterator<E> iterator()
- Specified by:
iterator in interface Iterable<E>- Specified by:
iterator in interface Collection<E>- Specified by:
iterator in interface List<E>
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf in interface List<E>
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIterator in interface List<E>
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIterator in interface List<E>
remove
public E remove(int index)
- Specified by:
remove in interface List<E>
removeRange
protected void removeRange(int fromIndex,
int toIndex)
set
public E set(int index,
E element)
- Specified by:
set in interface List<E>
subList
public List<E> subList(int fromIndex,
int toIndex)
- Specified by:
subList in interface List<E>