|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.onemind.commons.java.datastructure.LongList
Represents a list of long
Constructor Summary | |
LongList()
{@inheritDoc} |
|
LongList(int capacity)
{@inheritDoc} |
Method Summary | |
void |
add(long l)
Add a long to the list |
void |
add(long l,
int i)
Add a long at index i |
long |
first()
Return the first long in the list |
long |
get(int i)
Get the long on index i in the list |
long |
last()
Return the last long in the list |
long |
remove(int i)
Remove the long at index i |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LongList()
public LongList(int capacity)
capacity
- initial capacityMethod Detail |
public void add(long l)
l
- the longpublic long get(int i)
i
- the index
public void add(long l, int i)
l
- the longi
- the indexpublic long remove(int i)
i
- the index
public long first()
public long last()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |