Uses of Class
org.ddogleg.struct.DogLinkedList.Element
-
Uses of DogLinkedList.Element in org.ddogleg.struct
Modifier and TypeFieldDescriptionprotected @Nullable DogLinkedList.Element<T>
DogLinkedList.first
protected @Nullable DogLinkedList.Element<T>
DogLinkedList.last
@Nullable DogLinkedList.Element<T>
DogLinkedList.Element.next
@Nullable DogLinkedList.Element<T>
DogLinkedList.Element.prev
Modifier and TypeFieldDescriptionprotected final ArrayDeque<DogLinkedList.Element<T>>
DogLinkedList.available
Modifier and TypeMethodDescription@Nullable DogLinkedList.Element<T>
Returns the first element which contains 'object' starting from the head.DogLinkedList.getElement
(int index, boolean fromFront) Returns the N'th element when counting from the from or from the back@Nullable DogLinkedList.Element<T>
DogLinkedList.getHead()
Returns the first element in the list@Nullable DogLinkedList.Element<T>
DogLinkedList.getTail()
Returns the last element in the listDogLinkedList.insertAfter
(DogLinkedList.Element<T> previous, T object) Inserts the object into a new element after the provided element.DogLinkedList.insertBefore
(DogLinkedList.Element<T> next, T object) Inserts the object into a new element before the provided element.Adds the element to the front of the list.Adds the element to the back of the list.protected DogLinkedList.Element<T>
DogLinkedList.requestNew()
Returns a new element.Modifier and TypeMethodDescriptionDogLinkedList.insertAfter
(DogLinkedList.Element<T> previous, T object) Inserts the object into a new element after the provided element.DogLinkedList.insertBefore
(DogLinkedList.Element<T> next, T object) Inserts the object into a new element before the provided element.void
DogLinkedList.remove
(DogLinkedList.Element<T> element) Removes the element from the list and saves the element data structure for later reuse.void
DogLinkedList.swap
(DogLinkedList.Element<T> a, DogLinkedList.Element<T> b) Swaps the location of the two elements