|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines methods that must be implemented by a list that allows getting/removing messages from the end or beginning of the list.
Field Summary | |
static String |
ITF_NAME
The commonly used name to refer to this interface. |
Method Summary | |
Object |
getFirst()
Returns the first element in this list. |
Object |
getLast()
Returns the last element in this list. |
Object |
removeFirst()
Removes and returns the first element from this list. |
Object |
removeLast()
Removes and returns the last element from this list. |
Field Detail |
public static final String ITF_NAME
Method Detail |
public Object getFirst()
NoSuchElementException
- if this list is empty.public Object getLast()
NoSuchElementException
- if this list is empty.public Object removeFirst()
public Object removeLast()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |