public interface Queue<I extends Item>
| Modifier and Type | Method and Description |
|---|---|
void |
add(I item)
Add the item to the head of the list.
|
boolean |
remove(I item)
Attempt to remove an item from the queue.
|
int |
size()
Returns the queue size
|
ArrayList<I> |
trim(int size)
Attempt to trim the queue.
|
int size()
boolean remove(I item)
item - the item to removevoid add(I item)
item - the item to addCopyright © 2016 eXo Platform SAS. All Rights Reserved.