org.fusesource.hawtdb.util.list
Class SortedLinkedList<T extends SortedLinkedListNode<T>>
java.lang.Object
org.fusesource.hawtdb.util.list.SortedLinkedList<T>
public class SortedLinkedList<T extends SortedLinkedListNode<T>>
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
index
protected final TreeMap<java.lang.Long,T extends SortedLinkedListNode<T>> index
SortedLinkedList
public SortedLinkedList()
isEmpty
public boolean isEmpty()
add
public void add(T node)
get
public T get(long sequence)
- Parameters:
sequence
- The sequence number of the element to get.
lower
public T lower(long sequence,
boolean inclusive)
upper
public T upper(long sequence,
boolean inclusive)
remove
public void remove(T node)
getHead
public T getHead()
getTail
public T getTail()
clear
public void clear()
size
public int size()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toArrayList
public java.util.ArrayList<T> toArrayList()
- Copies the nodes of the LinkedNodeList to an ArrayList.
- Returns:
Copyright © 2009-2011 FuseSource, Corp.. All Rights Reserved.