Known Direct Subclasses
|
Known Indirect Subclasses
FixedSizeList |
Decorates another List to fix the size preventing add/remove. |
GrowthList |
Decorates another List to make it seamlessly grow when
indices larger than the list size are used on add and set,
avoiding most IndexOutOfBoundsExceptions. |
LazyList |
Decorates another List to create objects in the list on demand. |
SetUniqueList |
Decorates a List to ensure that no duplicates are present
much like a Set . |
UnmodifiableList |
Decorates another List to ensure it can't be altered. |
|
Class Overview
Decorates another List
to provide additional behaviour.
Methods are forwarded directly to the decorated list.
Summary
Protected Methods |
List
|
getList()
Gets the list being decorated.
|
[Expand]
Inherited Methods |
From class
org.apache.commons.collections.collection.AbstractCollectionDecorator
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
java.lang.Iterable
|
From interface
java.util.Collection
abstract
boolean
|
add(E arg0)
|
abstract
boolean
|
addAll(Collection<? extends E> arg0)
|
abstract
void
|
clear()
|
abstract
boolean
|
contains(Object arg0)
|
abstract
boolean
|
containsAll(Collection<?> arg0)
|
abstract
boolean
|
equals(Object arg0)
|
abstract
int
|
hashCode()
|
abstract
boolean
|
isEmpty()
|
abstract
Iterator<E>
|
iterator()
|
abstract
boolean
|
remove(Object arg0)
|
abstract
boolean
|
removeAll(Collection<?> arg0)
|
abstract
boolean
|
retainAll(Collection<?> arg0)
|
abstract
int
|
size()
|
abstract
<T>
T[]
|
toArray(T[] arg0)
|
abstract
Object[]
|
toArray()
|
|
From interface
java.util.List
abstract
boolean
|
add(E arg0)
|
abstract
void
|
add(int arg0, E arg1)
|
abstract
boolean
|
addAll(Collection<? extends E> arg0)
|
abstract
boolean
|
addAll(int arg0, Collection<? extends E> arg1)
|
abstract
void
|
clear()
|
abstract
boolean
|
contains(Object arg0)
|
abstract
boolean
|
containsAll(Collection<?> arg0)
|
abstract
boolean
|
equals(Object arg0)
|
abstract
E
|
get(int arg0)
|
abstract
int
|
hashCode()
|
abstract
int
|
indexOf(Object arg0)
|
abstract
boolean
|
isEmpty()
|
abstract
Iterator<E>
|
iterator()
|
abstract
int
|
lastIndexOf(Object arg0)
|
abstract
ListIterator<E>
|
listIterator(int arg0)
|
abstract
ListIterator<E>
|
listIterator()
|
abstract
E
|
remove(int arg0)
|
abstract
boolean
|
remove(Object arg0)
|
abstract
boolean
|
removeAll(Collection<?> arg0)
|
abstract
boolean
|
retainAll(Collection<?> arg0)
|
abstract
E
|
set(int arg0, E arg1)
|
abstract
int
|
size()
|
abstract
List<E>
|
subList(int arg0, int arg1)
|
abstract
<T>
T[]
|
toArray(T[] arg0)
|
abstract
Object[]
|
toArray()
|
|
Protected Constructors
protected
AbstractListDecorator
()
Constructor only used in deserialization, do not use otherwise.
protected
AbstractListDecorator
(List list)
Constructor that wraps (not copies).
Parameters
list
| the list to decorate, must not be null |
Public Methods
public
void
add
(int index, Object object)
public
boolean
addAll
(int index, Collection coll)
public
int
indexOf
(Object object)
public
int
lastIndexOf
(Object object)
public
Object
remove
(int index)
public
List
subList
(int fromIndex, int toIndex)
Protected Methods
protected
List
getList
()
Gets the list being decorated.