public final class ArrayQueue<E> extends AbstractQueue<E> implements Queue<E>
Constructor and Description |
---|
ArrayQueue(int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
int |
size() |
add, addAll, element, remove
contains, containsAll, 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 isEmpty()
isEmpty
in interface Collection<E>
isEmpty
in class AbstractCollection<E>
public int size()
size
in interface Collection<E>
size
in class AbstractCollection<E>
public void clear()
clear
in interface Collection<E>
clear
in class AbstractQueue<E>
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.