public class SortedLinkedList<T extends SortedLinkedListNode<T>> extends Object
| Constructor and Description |
|---|
SortedLinkedList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T node) |
void |
clear() |
T |
get(long sequence) |
T |
getHead() |
T |
getTail() |
boolean |
isEmpty() |
T |
lower(long sequence,
boolean inclusive) |
void |
remove(T node) |
int |
size() |
ArrayList<T> |
toArrayList()
Copies the nodes of the LinkedNodeList to an ArrayList.
|
String |
toString() |
T |
upper(long sequence,
boolean inclusive) |
protected final TreeMap<Long,T extends SortedLinkedListNode<T>> index
public boolean isEmpty()
public void add(T node)
public T get(long sequence)
sequence - The sequence number of the element to get.public T lower(long sequence, boolean inclusive)
public T upper(long sequence, boolean inclusive)
public void remove(T node)
public T getHead()
public T getTail()
public void clear()
public int size()
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.