
E - the element type.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 obj) |
void |
add(int index,
E element) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear() |
boolean |
equals(Object o) |
abstract E |
get(int index) |
int |
hashCode() |
int |
indexOf(Object toFind) |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object toFind) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int from) |
E |
remove(int index) |
protected void |
removeRange(int fromIndex,
int endIndex) |
E |
set(int index,
E o) |
List<E> |
subList(int fromIndex,
int toIndex) |
public boolean add(E obj)
add in interface Collection<E>add in interface List<E>add in class AbstractCollection<E>public boolean addAll(int index,
Collection<? extends E> c)
public void clear()
clear in interface Collection<E>clear in interface List<E>clear in class AbstractCollection<E>public boolean equals(Object o)
public int hashCode()
public int lastIndexOf(Object toFind)
lastIndexOf in interface List<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int from)
listIterator in interface List<E>protected void removeRange(int fromIndex,
int endIndex)
Copyright © 2018. All rights reserved.