Class LinkedListImpl<E>
java.lang.Object
org.apache.activemq.artemis.utils.collections.LinkedListImpl<E>
- All Implemented Interfaces:
LinkedList<E>
A linked list implementation which allows multiple iterators to exist at the same time on the queue, and which see
any elements added or removed from the queue either directly or via iterators.
This class is not thread safe.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic class -
Constructor Summary
ConstructorsConstructorDescriptionLinkedListImpl(Comparator<E> comparator) LinkedListImpl(Comparator<E> comparator, NodeStore<E> supplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected booleanaddSortedScan(E e) voidvoidclear()voidclearID()voidget(int position) iterator()intnumIters()peek()poll()removeWithID(String listID, long id) you need to callLinkedList.setNodeStore(NodeStore)before you are able to call this method.protected booleanscanLeft(LinkedListImpl.Node<E> position, E e) protected booleanscanRight(LinkedListImpl.Node<E> position, E e) voidsetNodeStore(NodeStore<E> supplier) this makes possibl to useLinkedList.removeWithID(String, long)intsize()toString()
-
Constructor Details
-
LinkedListImpl
public LinkedListImpl() -
LinkedListImpl
-
LinkedListImpl
-
-
Method Details
-
clearID
public void clearID()- Specified by:
clearIDin interfaceLinkedList<E>
-
setNodeStore
Description copied from interface:LinkedListthis makes possibl to useLinkedList.removeWithID(String, long)- Specified by:
setNodeStorein interfaceLinkedList<E>
-
addHead
- Specified by:
addHeadin interfaceLinkedList<E>
-
peek
- Specified by:
peekin interfaceLinkedList<E>
-
get
- Specified by:
getin interfaceLinkedList<E>
-
removeWithID
Description copied from interface:LinkedListyou need to callLinkedList.setNodeStore(NodeStore)before you are able to call this method.- Specified by:
removeWithIDin interfaceLinkedList<E>
-
forEach
- Specified by:
forEachin interfaceLinkedList<E>
-
addTail
- Specified by:
addTailin interfaceLinkedList<E>
-
addSorted
-
scanRight
-
scanLeft
-
addSortedScan
-
poll
- Specified by:
pollin interfaceLinkedList<E>
-
clear
public void clear()- Specified by:
clearin interfaceLinkedList<E>
-
size
public int size()- Specified by:
sizein interfaceLinkedList<E>
-
iterator
- Specified by:
iteratorin interfaceLinkedList<E>
-
toString
-
numIters
public int numIters()
-