|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object openlsd.common.datatype.LSDLinkedLongList<A>
A
- Class of object in LinkedListpublic class LSDLinkedLongList<A>
Class to handle LinkedList with long capacity and not int capacity. Only minimal functions are done.
Constructor Summary | |
---|---|
LSDLinkedLongList()
Create an empty LinkedLongList |
Method Summary | |
---|---|
boolean |
add(A elt)
Add the object in the end of the list |
boolean |
addFirst(A elt)
Add the object in the beginning of the list |
boolean |
addLast(A elt)
Add the object in the end of the list |
void |
clear()
Remove all element from the list |
void |
destroy()
Destroy the list |
A |
getFirst()
Get the first element |
A |
getLast()
Get the last element |
boolean |
isEmpty()
Tell if the list is empty |
java.util.Iterator<A> |
iterator()
Return the iterator for this list |
A |
peek()
Get the first element |
A |
poll()
Remove the first element |
A |
remove()
Remove and return the first element |
A |
removeFirst()
Remove and return the first element |
A |
removeLast()
Remove and return the last element |
long |
size()
return the size of the list |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LSDLinkedLongList()
Method Detail |
---|
public long size()
public boolean addLast(A elt)
elt
-
public boolean add(A elt)
elt
-
public boolean addFirst(A elt)
elt
-
public A getFirst()
public A peek()
public A getLast()
public A poll()
public A removeFirst()
public A remove()
public A removeLast()
public void clear()
public void destroy()
public boolean isEmpty()
public java.util.Iterator<A> iterator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |