E - public class SynchronizedBoundedPriorityQueue<E> extends Object implements Serializable, Iterable<E>, Collection<E>, Queue<E>
| Constructor and Description |
|---|
SynchronizedBoundedPriorityQueue(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
E |
element() |
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
E |
remove() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, removeIf, spliterator, streampublic SynchronizedBoundedPriorityQueue(int capacity)
capacity - public final int size()
size in interface Collection<E>public final boolean offer(E e)
public final boolean isEmpty()
isEmpty in interface Collection<E>public final boolean contains(Object o)
contains in interface Collection<E>o - public final Object[] toArray()
toArray in interface Collection<E>public final <T> T[] toArray(T[] a)
toArray in interface Collection<E>T - a - public final boolean add(E e)
public final boolean remove(Object o)
remove in interface Collection<E>o - public final boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>c - public final boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>c - public final boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>c - public final boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>c - public final void clear()
clear in interface Collection<E>public final boolean equals(Object other)
equals in interface Collection<E>equals in class Objectother - public final int hashCode()
hashCode in interface Collection<E>hashCode in class ObjectCopyright © 2017. All rights reserved.