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, swapadd, addAll, addAll, deepClear, find, quickClear, references, removeaddAll, contains, containsAll, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAll, addAll, deepClear, find, quickClear, references, removeadd, addAll, contains, containsAll, equals, hashCode, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArraypublic void replace(ElementReference ref, E newElement)
SmartCollectionreplace in interface SmartCollection<E>replace in class AbstractLinkedList<E,DefaultLinkedListEntry<E>>ref - the reference of the element to be replaced.newElement - the replacement.protected DefaultLinkedListEntry<E> makeEntry(E element)
AbstractLinkedListLinkedListEntry 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.Copyright © 2018. All rights reserved.