Modifier and Type | Method and Description |
---|---|
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.
|
T getOldest()
T getNewest()
boolean add(T entry)
entry
- item to add to the listboolean remove(T entry)
entry
- item to remove from the listboolean contains(T entry)
entry
- item to checkvoid clear()
int size()
Copyright © 2016 Egothor. All Rights Reserved.