public class LimitedFIFOQueue<E> extends AbstractQueue<E>
Constructor and Description |
---|
LimitedFIFOQueue(int capacity) |
Modifier and Type | Method and Description |
---|---|
Iterator<E> |
iterator() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
int |
size() |
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
public Iterator<E> iterator()
iterator
in interface Iterable<E>
iterator
in interface Collection<E>
iterator
in class AbstractCollection<E>
public boolean offer(E e)
public E peek()
public E poll()
public int size()
size
in interface Collection<E>
size
in class AbstractCollection<E>