E
- element class.public class DefaultLinkedList<E> extends AbstractLinkedList<E,DefaultLinkedListEntry<E>>
Constructor and Description |
---|
DefaultLinkedList() |
Modifier and Type | Method and Description |
---|---|
protected DefaultLinkedListEntry<E> |
makeEntry(E element)
Creates (if necessary) a
LinkedListEntry for the given element. |
void |
replace(ElementReference ref,
E newElement)
Replaces the element referenced by the given reference with
the specified element.
|
addCompletely, castRef, choose, chooseRef, clear, concat, get, getBack, getBackEntry, getBackReference, getFront, getFrontEntry, getFrontReference, insertAfter, insertAfterEntry, insertBefore, insertBeforeEntry, isEmpty, iterator, popBack, popBackEntry, popFront, popFrontEntry, pred, pushBack, pushBackEntry, pushFront, pushFrontEntry, referencedAdd, referenceIterator, remove, removeEntry, replaceEntry, size, succ, swap
add, addAll, addAll, deepClear, find, quickClear, references, remove
addAll, contains, containsAll, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAll, addAll, deepClear, find, quickClear, references, remove
add, addAll, contains, containsAll, equals, hashCode, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray
protected DefaultLinkedListEntry<E> makeEntry(E element)
AbstractLinkedList
LinkedListEntry
for the given element.
For intrusive linked lists, e.g., the argument itself is returned.makeEntry
in class AbstractLinkedList<E,DefaultLinkedListEntry<E>>
element
- the element for which to retrieve an entry.public void replace(ElementReference ref, E newElement)
SmartCollection
replace
in interface SmartCollection<E>
replace
in class AbstractLinkedList<E,DefaultLinkedListEntry<E>>
ref
- the reference of the element to be replaced.newElement
- the replacement.Copyright © 2015. All rights reserved.