public class ZLinkedList<Type> extends LinkedList<Type> implements ZIndexable<Type>
modCount
Constructor and Description |
---|
ZLinkedList() |
Modifier and Type | Method and Description |
---|---|
void |
addToBottom(Type element) |
void |
addToTop(Type element) |
List<Type> |
elements() |
boolean |
moveAbove(Type objectToMove,
Type reference)
Move above the specified element
|
boolean |
moveBeneath(Type objectToMove,
Type reference)
Move beneath the specified element
|
boolean |
moveDown(Type key)
Move down by one element
|
boolean |
moveToBottom(Type key)
Move beneath all other elements
|
boolean |
moveToTop(Type element)
Move above all other elements
|
boolean |
moveUp(Type key)
Move up by one element
|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
iterator
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
parallelStream, removeIf, stream
public boolean moveToTop(Type element)
ZIndexable
moveToTop
in interface ZIndexable<Type>
public boolean moveAbove(Type objectToMove, Type reference)
ZIndexable
moveAbove
in interface ZIndexable<Type>
public boolean moveBeneath(Type objectToMove, Type reference)
ZIndexable
moveBeneath
in interface ZIndexable<Type>
public boolean moveToBottom(Type key)
ZIndexable
moveToBottom
in interface ZIndexable<Type>
public boolean moveUp(Type key)
ZIndexable
moveUp
in interface ZIndexable<Type>
public boolean moveDown(Type key)
ZIndexable
moveDown
in interface ZIndexable<Type>
public List<Type> elements()
elements
in interface ZIndexable<Type>
public void addToBottom(Type element)
public void addToTop(Type element)