E - The type of the elements in the queue.public class SetQueue<E> extends AbstractQueue<E> implements Queue<E>
| Constructor and Description |
|---|
SetQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object obj) |
int |
hashCode() |
Iterator<E> |
iterator() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
String |
toString() |
add, addAll, element, removeisEmpty, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, isEmpty, toArray, toArraypublic Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator 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>public boolean remove(Object o)
remove in interface Collection<E>remove in class AbstractCollection<E>public boolean contains(Object o)
contains in interface Collection<E>contains in class AbstractCollection<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>removeAll in class AbstractCollection<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in class AbstractCollection<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>retainAll in class AbstractCollection<E>public int hashCode()
hashCode in interface Collection<E>hashCode in class Objectpublic boolean equals(Object obj)
equals in interface Collection<E>equals in class Objectpublic String toString()
toString in class AbstractCollection<E>Copyright © 2015 The Apache Software Foundation. All rights reserved.