public class DescendableLinkedList<E>
extends java.util.LinkedList<E>
Constructor and Description |
---|
DescendableLinkedList()
Create a new DescendableLinkedList.
|
Modifier and Type | Method and Description |
---|---|
java.util.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.
|
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, toArray, toArray
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
public DescendableLinkedList()
public void push(E e)
public E peekLast()
public E pollLast()
public java.util.Iterator<E> descendingIterator()
Copyright © 2009-2012 Jonathan Hedley. All Rights Reserved.