public abstract class ForwardingList<E> extends Object implements List<E>
This class does not implement RandomAccess
. If the delegate supports random access, the
ForwardingList
subclass should implement the RandomAccess
interface.
Modifier | Constructor and Description |
---|---|
protected |
ForwardingList()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E element) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> collection) |
boolean |
addAll(int index,
Collection<? extends E> elements) |
void |
clear() |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> collection) |
protected abstract List<E> |
delegate() |
boolean |
equals(Object object) |
E |
get(int index) |
int |
hashCode() |
int |
indexOf(Object element) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object element) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
E |
set(int index,
E element) |
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
public boolean addAll(int index, Collection<? extends E> elements)
public int lastIndexOf(Object element)
lastIndexOf
in interface List<E>
public ListIterator<E> listIterator()
listIterator
in interface List<E>
public ListIterator<E> listIterator(int index)
listIterator
in interface List<E>
public boolean equals(Object object)
public int hashCode()
public int size()
public boolean removeAll(Collection<?> collection)
public boolean isEmpty()
public boolean contains(Object object)
public Object[] toArray()
public <T> T[] toArray(T[] array)
public boolean add(E element)
public boolean remove(Object object)
public boolean containsAll(Collection<?> collection)
containsAll
in interface Collection<E>
containsAll
in interface List<E>
public boolean addAll(Collection<? extends E> collection)
public boolean retainAll(Collection<?> collection)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.