Package org.apache.commons.collections4.list
package org.apache.commons.collections4.list
Implements the
List
interface.
The following implementations are provided in the package:
- TreeList - a list that is optimized for insertions and removals at any index in the list
- CursorableLinkedList - a list that can be modified while the listIterator (cursor) is being used
- NodeCachingLinkedList - a linked list that caches the storage nodes for a performance gain
The following decorators are provided in the package:
- Unmodifiable - ensures the collection cannot be altered
- Predicated - ensures that only elements that are valid according to a predicate can be added
- Transformed - transforms each element added
- FixedSize - ensures that the size of the list cannot change
- Lazy - creates objects in the list on demand
- Growth - grows the list instead of erring when set/add used with index beyond the list size
- SetUnique - a list that avoids duplicate entries like a Set
-
ClassDescriptionDeprecated.A list iterator over the linked list.The sublist implementation for AbstractLinkedList.A list iterator over the linked sub list.A node within the linked list.An abstract implementation of a linked list which provides numerous points for subclasses to override.A list iterator over the linked list.The sublist implementation for AbstractLinkedListJava21.A list iterator over the linked sub list.A node within the linked list.Decorates another
List
to provide additional behavior.Serializable subclass of AbstractListDecorator.Deprecated.parentAbstractLinkedList
is source incompatible with List methods added in Java 21An extendedListIterator
that allows concurrent changes to the underlying list.A cursor for the sublist based on LinkedSubListIterator.Decorates anotherList
to fix the size preventing add/remove.GrowthList<E>Decorates anotherList
to make it seamlessly grow when indices larger than the list size are used on add and set, avoiding most IndexOutOfBoundsExceptions.LazyList<E>Decorates anotherList
to create objects in the list on demand.Deprecated.parentAbstractLinkedList
is source incompatible with List methods added in Java 21Decorates anotherList
to validate that all additions match a specified predicate.Decorates aList
to ensure that no duplicates are present much like aSet
.Decorates anotherList
to transform objects that are added.TreeList<E>AList
implementation that is optimized for fast insertions and removals at any index in the list.Decorates anotherList
to ensure it can't be altered.
AbstractLinkedListJava21
instead