E - element class.public interface SmartDeque<E> extends SmartCollection<E>
| Modifier and Type | Method and Description |
|---|---|
E |
getBack()
Retrieves the element at the end of the sequence, or
null if the sequence is empty. |
ElementReference |
getBackReference()
Retrieves the reference to the element at the end of the sequence, or
null if the sequence is
empty. |
E |
getFront()
Retrieves the element at the beginning of the sequence, or
null if the sequence is empty. |
ElementReference |
getFrontReference()
Retrieves the reference to the element at the beginning of the sequence, or
null if the sequence is
empty. |
E |
popBack()
Retrieves and removes the element at the beginning of the sequence.
|
E |
popFront()
Retrieves and removes the element at the beginning of the sequence.
|
ElementReference |
pushBack(E element)
Adds an element at the end of the sequence.
|
ElementReference |
pushFront(E element)
Adds an element at the beginning of the sequence.
|
addAll, addAll, choose, chooseRef, deepClear, find, get, quickClear, referencedAdd, referenceIterator, references, remove, remove, replaceadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArrayElementReference pushFront(E element)
element - the element to be added.ElementReference pushBack(E element)
element - the element to be added.E getFront()
null if the sequence is empty.null.E getBack()
null if the sequence is empty.null.ElementReference getFrontReference()
null if the sequence is
empty.null.ElementReference getBackReference()
null if the sequence is
empty.null.E popFront()
null
is returned.null.E popBack()
null
is returned.null.Copyright © 2018. All rights reserved.