A specialized double-linked list of elements that extends LinkedListEntry.
This is not a generic data structure. It only accepts elements that extend the LinkedListEntry class. See the Queue implementations for generic collections that allow constant time adding and removing at the ends.
This is not a List implementation. Despite its name, this class does not implement the List interface. It does not allow constant time lookup by index.
Because the elements themselves contain the links of this linked list, each element can be in only one list at a time. To add an element to another list, it must first be removed from its current list (if any).
In return, each element knows its own place in the linked list, as well as which list it is in. This allows constant time LinkedListEntry.insertAfter, LinkedListEntry.insertBefore and LinkedListEntry.unlink operations when all you have is the element.
A LinkedList
also allows constant time adding and removing at either end,
and a constant time length getter.
true
if there are no elements in this collection. [...]
Iterator
that allows iterating the elements of this
Iterable
. [...]
entry
to the end of the linked list.
entries
to the end of the linked list.
entry
to the beginning of the linked list.
action
with each entry in this linked list. [...]
entry
from the linked list. [...]
test
. [...]
R
instances. [...]
element
. [...]
index
th element. [...]
test
. [...]
test
. [...]
other
. [...]
test
. [...]
f
on each element of this Iterable
in iteration order. [...]
test
. [...]
count
elements. [...]
Iterable
that skips leading elements while test
is satisfied. [...]
count
first elements of this iterable. [...]
test
. [...]
this
. [...]
test
. [...]
T
. [...]