public abstract class AbstractList<E> extends AbstractCollection<E> implements List<E>
| Modifier and Type | Field and Description |
|---|---|
protected int |
modCount |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E object) |
void |
add(int location,
E object) |
boolean |
addAll(int location,
Collection<? extends E> collection) |
void |
clear() |
boolean |
equals(Object object) |
abstract E |
get(int location) |
int |
hashCode() |
int |
indexOf(Object object) |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object object) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int location) |
E |
remove(int location) |
protected void |
removeRange(int start,
int end) |
E |
set(int location,
E object) |
List<E> |
subList(int start,
int end) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] contents) |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toStringaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, sortremoveIfpublic boolean add(E object)
add in interface Collection<E>add in interface List<E>add in class AbstractCollection<E>public boolean addAll(int location,
Collection<? extends E> collection)
public void clear()
clear in interface Collection<E>clear in interface List<E>clear in class AbstractCollection<E>public boolean equals(Object object)
public int hashCode()
public int lastIndexOf(Object object)
lastIndexOf in interface List<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int location)
listIterator in interface List<E>protected void removeRange(int start,
int end)
public Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>toArray in class AbstractCollection<E>public <T> T[] toArray(T[] contents)
toArray in interface Collection<E>toArray in interface List<E>toArray in class AbstractCollection<E>Copyright © 2026. All rights reserved.