E
- Type of elementsSerializable
, Cloneable
, Iterable<E>
, Collection<E>
, Deque<E>
, List<E>
, Queue<E>
public class DescendableLinkedList<E> extends LinkedList<E>
modCount
Constructor | Description |
---|---|
DescendableLinkedList() |
Create a new DescendableLinkedList.
|
Modifier and Type | Method | Description |
---|---|---|
Iterator<E> |
descendingIterator() |
Get an iterator that starts and the end of the list and works towards the start.
|
E |
peekLast() |
Look at the last element, if there is one.
|
E |
pollLast() |
Remove and return the last element, if there is one
|
void |
push(E e) |
Add a new element to the start of the list.
|
containsAll, isEmpty, removeAll, retainAll, toString
equals, hashCode, listIterator, removeRange, subList
iterator
parallelStream, removeIf, stream
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, poll, pollFirst, pop, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
public DescendableLinkedList()
public void push(E e)
public E peekLast()
public E pollLast()
public Iterator<E> descendingIterator()
descendingIterator
in interface Deque<E>
descendingIterator
in class LinkedList<E>
Copyright © 2009–2018 Jonathan Hedley. All rights reserved.