|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- type of the stored itempublic interface List<T>
Represents an interface for every class that behaves like a list of items.
Method Summary | |
---|---|
boolean |
add(T entry)
Adds an item to the list. |
void |
clear()
Removes all items from the list. |
boolean |
contains(T entry)
Checks whether an item is present in the list. |
T |
getNewest()
Gets the item that has been the shortest time in the list. |
T |
getOldest()
Gets the item that has been the longest time in the list. |
boolean |
remove(T entry)
Removes an item from the list. |
int |
size()
Gets the number of items in the list. |
Method Detail |
---|
T getOldest()
T getNewest()
boolean add(T entry)
entry
- item to add to the list
boolean remove(T entry)
entry
- item to remove from the list
boolean contains(T entry)
entry
- item to check
void clear()
int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |