|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<E>
org.jsoup.helper.DescendableLinkedList<E>
public class DescendableLinkedList<E>
Provides a descending iterator and other 1.6 methods to allow support on the 1.5 JRE.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
DescendableLinkedList()
Create a new DescendableLinkedList. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.util.LinkedList |
|---|
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 |
| Methods inherited from class java.util.AbstractSequentialList |
|---|
iterator |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, isEmpty, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
| Methods inherited from interface java.util.Deque |
|---|
iterator |
| Constructor Detail |
|---|
public DescendableLinkedList()
| Method Detail |
|---|
public void push(E e)
push in interface Deque<E>push in class LinkedList<E>e - element to addpublic E peekLast()
peekLast in interface Deque<E>peekLast in class LinkedList<E>public E pollLast()
pollLast in interface Deque<E>pollLast in class LinkedList<E>public Iterator<E> descendingIterator()
descendingIterator in interface Deque<E>descendingIterator in class LinkedList<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||