|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
int |
getCount()
Counts the number of elements in the list. |
java.lang.Object |
getFrom(int index)
Returns the element at the specified position in the list. |
java.lang.Object |
getHead()
Returns the first element in the list. |
java.lang.Object |
getTail()
Returns the last element in the list. |
void |
insertAt(java.lang.Object element,
int index)
Inserts an element at the specified position in the list. |
void |
insertHead(java.lang.Object element)
Inserts an element at the beginning of the list. |
void |
insertTail(java.lang.Object element)
Inserts an element at the end of the list. |
boolean |
isEmpty()
Checks whether the list is empty. |
java.lang.Object |
removeFrom(int index)
Removes from the list the element at the specified location. |
java.lang.Object |
removeHead()
Removes the first element from the list. |
java.lang.Object |
removeTail()
Removes the last element from the list. |
Method Detail |
public boolean isEmpty()
public int getCount()
public java.lang.Object getHead()
public java.lang.Object getTail()
public java.lang.Object getFrom(int index)
index
- the index of the element to return.
public void insertHead(java.lang.Object element)
element
- the element to be inserted.public void insertTail(java.lang.Object element)
element
- the element to be inserted.public void insertAt(java.lang.Object element, int index)
element
- the element to be inserted.index
- the position at which the element is to be inserted.public java.lang.Object removeHead()
public java.lang.Object removeTail()
public java.lang.Object removeFrom(int index)
index
- the index of the element to be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |