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 void
add(int index, Object value)
Deprecated.boolean
add(Object value)
Deprecated.boolean
addAll(int index, Collection coll)
Deprecated.boolean
addAll(Collection coll)
Deprecated.boolean
addFirst(Object o)
Deprecated.boolean
addLast(Object o)
Deprecated.void
clear()
Deprecated.boolean
contains(Object value)
Deprecated.boolean
containsAll(Collection coll)
Deprecated.boolean
equals(Object obj)
Deprecated.Object
get(int index)
Deprecated.Object
getFirst()
Deprecated.Object
getLast()
Deprecated.int
hashCode()
Deprecated.int
indexOf(Object value)
Deprecated.boolean
isEmpty()
Deprecated.Iterator
iterator()
Deprecated.int
lastIndexOf(Object value)
Deprecated.ListIterator
listIterator()
Deprecated.ListIterator
listIterator(int fromIndex)
Deprecated.Object
remove(int index)
Deprecated.boolean
remove(Object value)
Deprecated.boolean
removeAll(Collection coll)
Deprecated.Object
removeFirst()
Deprecated.Object
removeLast()
Deprecated.boolean
retainAll(Collection coll)
Deprecated.Object
set(int index, Object value)
Deprecated.int
size()
Deprecated.List
subList(int fromIndexInclusive, int toIndexExclusive)
Deprecated.Gets a sublist of the main list.Object[]
toArray()
Deprecated.Object[]
toArray(Object[] array)
Deprecated.String
toString()
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:
size
in interfaceCollection
- Specified by:
size
in interfaceList
-
isEmpty
public boolean isEmpty()
Deprecated.- Specified by:
isEmpty
in interfaceCollection
- Specified by:
isEmpty
in interfaceList
-
iterator
public Iterator iterator()
Deprecated.
-
listIterator
public ListIterator listIterator()
Deprecated.- Specified by:
listIterator
in interfaceList
-
listIterator
public ListIterator listIterator(int fromIndex)
Deprecated.- Specified by:
listIterator
in interfaceList
-
lastIndexOf
public int lastIndexOf(Object value)
Deprecated.- Specified by:
lastIndexOf
in interfaceList
-
contains
public boolean contains(Object value)
Deprecated.- Specified by:
contains
in interfaceCollection
- Specified by:
contains
in interfaceList
-
containsAll
public boolean containsAll(Collection coll)
Deprecated.- Specified by:
containsAll
in interfaceCollection
- Specified by:
containsAll
in interfaceList
-
toArray
public Object[] toArray()
Deprecated.- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceList
-
toArray
public Object[] toArray(Object[] array)
Deprecated.- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in 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:
add
in interfaceCollection
- Specified by:
add
in interfaceList
-
addAll
public boolean addAll(Collection coll)
Deprecated.- Specified by:
addAll
in interfaceCollection
- Specified by:
addAll
in interfaceList
-
addAll
public boolean addAll(int index, Collection coll)
Deprecated.
-
remove
public boolean remove(Object value)
Deprecated.- Specified by:
remove
in interfaceCollection
- Specified by:
remove
in interfaceList
-
removeAll
public boolean removeAll(Collection coll)
Deprecated.- Specified by:
removeAll
in interfaceCollection
- Specified by:
removeAll
in interfaceList
-
retainAll
public boolean retainAll(Collection coll)
Deprecated.- Specified by:
retainAll
in interfaceCollection
- Specified by:
retainAll
in interfaceList
-
clear
public void clear()
Deprecated.- Specified by:
clear
in interfaceCollection
- Specified by:
clear
in 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.
-
-