Class AbstractLinkedList
- java.lang.Object
-
- org.apache.commons.collections.list.AbstractLinkedList
-
- All Implemented Interfaces:
Iterable,Collection,List
- Direct Known Subclasses:
CursorableLinkedList,NodeCachingLinkedList
@Deprecated(since="2021-04-30") public abstract class AbstractLinkedList extends Object implements List
Deprecated.Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(int index, Object value)Deprecated.booleanadd(Object value)Deprecated.booleanaddAll(int index, Collection coll)Deprecated.booleanaddAll(Collection coll)Deprecated.booleanaddFirst(Object o)Deprecated.booleanaddLast(Object o)Deprecated.voidclear()Deprecated.booleancontains(Object value)Deprecated.booleancontainsAll(Collection coll)Deprecated.booleanequals(Object obj)Deprecated.Objectget(int index)Deprecated.ObjectgetFirst()Deprecated.ObjectgetLast()Deprecated.inthashCode()Deprecated.intindexOf(Object value)Deprecated.booleanisEmpty()Deprecated.Iteratoriterator()Deprecated.intlastIndexOf(Object value)Deprecated.ListIteratorlistIterator()Deprecated.ListIteratorlistIterator(int fromIndex)Deprecated.Objectremove(int index)Deprecated.booleanremove(Object value)Deprecated.booleanremoveAll(Collection coll)Deprecated.ObjectremoveFirst()Deprecated.ObjectremoveLast()Deprecated.booleanretainAll(Collection coll)Deprecated.Objectset(int index, Object value)Deprecated.intsize()Deprecated.ListsubList(int fromIndexInclusive, int toIndexExclusive)Deprecated.Gets a sublist of the main list.Object[]toArray()Deprecated.Object[]toArray(Object[] array)Deprecated.StringtoString()Deprecated.-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
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
-
iterator
public Iterator iterator()
Deprecated.
-
listIterator
public ListIterator listIterator()
Deprecated.- Specified by:
listIteratorin interfaceList
-
listIterator
public ListIterator listIterator(int fromIndex)
Deprecated.- Specified by:
listIteratorin interfaceList
-
lastIndexOf
public int lastIndexOf(Object value)
Deprecated.- Specified by:
lastIndexOfin interfaceList
-
contains
public boolean contains(Object value)
Deprecated.- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList
-
containsAll
public boolean containsAll(Collection coll)
Deprecated.- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceList
-
toArray
public Object[] toArray()
Deprecated.- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
toArray
public Object[] toArray(Object[] array)
Deprecated.- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
subList
public List subList(int fromIndexInclusive, int toIndexExclusive)
Deprecated.Gets a sublist of the main list.
-
add
public boolean add(Object value)
Deprecated.- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList
-
addAll
public boolean addAll(Collection coll)
Deprecated.- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList
-
addAll
public boolean addAll(int index, Collection coll)Deprecated.
-
remove
public boolean remove(Object value)
Deprecated.- Specified by:
removein interfaceCollection- Specified by:
removein interfaceList
-
removeAll
public boolean removeAll(Collection coll)
Deprecated.- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceList
-
retainAll
public boolean retainAll(Collection coll)
Deprecated.- Specified by:
retainAllin interfaceCollection- Specified by:
retainAllin interfaceList
-
clear
public void clear()
Deprecated.- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList
-
getFirst
public Object getFirst()
Deprecated.
-
getLast
public Object getLast()
Deprecated.
-
addFirst
public boolean addFirst(Object o)
Deprecated.
-
addLast
public boolean addLast(Object o)
Deprecated.
-
removeFirst
public Object removeFirst()
Deprecated.
-
removeLast
public Object removeLast()
Deprecated.
-
equals
public boolean equals(Object obj)
Deprecated.
-
hashCode
public int hashCode()
Deprecated.
-
-