Class AbstractLinkedList
java.lang.Object
org.apache.commons.collections.list.AbstractLinkedList
- All Implemented Interfaces:
Iterable,Collection,List,SequencedCollection
- Direct Known Subclasses:
CursorableLinkedList,NodeCachingLinkedList
@Deprecated(since="2021-04-30")
public abstract class AbstractLinkedList
extends Object
implements List
Deprecated.
Apache Commons Collections version 3.x is being deprecated from AEMaaCS. The upgraded version 4.4 of Commons Collections is already included as replacement. Customers are advised to upgrade to this version of the library. Please note: the package name was changed to org.apache.commons.collections4. Further note that there are AEM APIs currently exposing the old collections classes; these will be updated in upcoming releases.
An abstract implementation of a linked list which provides numerous points for
subclasses to override.
Overridable methods are provided to change the storage node and to change how nodes are added to and removed. Hopefully, all you need for unusual subclasses is here.
- Since:
- Commons Collections 3.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.booleanDeprecated.booleanaddAll(int index, Collection coll) Deprecated.booleanaddAll(Collection coll) Deprecated.booleanDeprecated.booleanDeprecated.voidclear()Deprecated.booleanDeprecated.booleancontainsAll(Collection coll) Deprecated.booleanDeprecated.get(int index) Deprecated.getFirst()Deprecated.getLast()Deprecated.inthashCode()Deprecated.intDeprecated.booleanisEmpty()Deprecated.iterator()Deprecated.intlastIndexOf(Object value) Deprecated.Deprecated.listIterator(int fromIndex) Deprecated.remove(int index) Deprecated.booleanDeprecated.booleanremoveAll(Collection coll) Deprecated.Deprecated.Deprecated.booleanretainAll(Collection coll) Deprecated.Deprecated.intsize()Deprecated.subList(int fromIndexInclusive, int toIndexExclusive) Deprecated.Gets a sublist of the main list.Object[]toArray()Deprecated.Object[]Deprecated.toString()Deprecated.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, reversed, sort, spliterator
-
Method Details
-
size
public int size()Deprecated.- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList
-
isEmpty
public boolean isEmpty()Deprecated.- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceList
-
get
Deprecated. -
iterator
Deprecated. -
listIterator
Deprecated.- Specified by:
listIteratorin interfaceList
-
listIterator
Deprecated.- Specified by:
listIteratorin interfaceList
-
indexOf
Deprecated. -
lastIndexOf
Deprecated.- Specified by:
lastIndexOfin interfaceList
-
contains
Deprecated.- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList
-
containsAll
Deprecated.- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceList
-
toArray
Deprecated.- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
toArray
Deprecated.- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
subList
Deprecated.Gets a sublist of the main list. -
add
Deprecated.- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList
-
add
Deprecated. -
addAll
Deprecated.- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList
-
addAll
Deprecated. -
remove
Deprecated. -
remove
Deprecated.- Specified by:
removein interfaceCollection- Specified by:
removein interfaceList
-
removeAll
Deprecated.- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceList
-
retainAll
Deprecated.- Specified by:
retainAllin interfaceCollection- Specified by:
retainAllin interfaceList
-
set
Deprecated. -
clear
public void clear()Deprecated.- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList
-
getFirst
Deprecated.- Specified by:
getFirstin interfaceList- Specified by:
getFirstin interfaceSequencedCollection
-
getLast
Deprecated.- Specified by:
getLastin interfaceList- Specified by:
getLastin interfaceSequencedCollection
-
addFirst
Deprecated.- Specified by:
addFirstin interfaceList- Specified by:
addFirstin interfaceSequencedCollection
-
addLast
Deprecated.- Specified by:
addLastin interfaceList- Specified by:
addLastin interfaceSequencedCollection
-
removeFirst
Deprecated.- Specified by:
removeFirstin interfaceList- Specified by:
removeFirstin interfaceSequencedCollection
-
removeLast
Deprecated.- Specified by:
removeLastin interfaceList- Specified by:
removeLastin interfaceSequencedCollection
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-