public class SimpleLinkedList extends java.lang.Object implements java.io.Serializable, RevisionHandler
Modifier and Type | Class and Description |
---|---|
class |
SimpleLinkedList.LinkedListInverseIterator |
class |
SimpleLinkedList.LinkedListIterator |
Constructor and Description |
---|
SimpleLinkedList() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object o) |
void |
addAll(SimpleLinkedList list) |
void |
addFirst(java.lang.Object o) |
void |
clear() |
java.lang.Object |
getFirst() |
java.lang.Object |
getLast() |
java.lang.String |
getRevision()
Returns the revision string.
|
SimpleLinkedList.LinkedListInverseIterator |
inverseIterator() |
boolean |
isEmpty() |
SimpleLinkedList.LinkedListIterator |
iterator() |
void |
merge(SimpleLinkedList list,
java.util.Comparator comp) |
java.lang.Object |
removeFirst() |
int |
size() |
void |
sort(java.util.Comparator comp) |
java.lang.String |
toString() |
public java.lang.Object removeFirst()
public java.lang.Object getFirst()
public java.lang.Object getLast()
public void addFirst(java.lang.Object o)
public void add(java.lang.Object o)
public void addAll(SimpleLinkedList list)
public void clear()
public boolean isEmpty()
public SimpleLinkedList.LinkedListIterator iterator()
public SimpleLinkedList.LinkedListInverseIterator inverseIterator()
public int size()
public void merge(SimpleLinkedList list, java.util.Comparator comp)
public void sort(java.util.Comparator comp)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface RevisionHandler