public class BoundedPriorityQueueSet<E> extends Object implements SortedSet<E>, BoundedQueue<E>
Constructor and Description |
---|
BoundedPriorityQueueSet(int capacity) |
BoundedPriorityQueueSet(int capacity,
Collection<E> c) |
BoundedPriorityQueueSet(int capacity,
Comparator<E> comparator) |
BoundedPriorityQueueSet(int capacity,
Comparator<E> comparator,
Collection<E> c) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
clear() |
Comparator<? super E> |
comparator() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
E |
element() |
boolean |
equals(Object o) |
E |
first() |
int |
getCapacity() |
int |
hashCode() |
SortedSet<E> |
headSet(E toElement) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
E |
last() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
E |
remove() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
SortedSet<E> |
subSet(E fromElement,
E toElement) |
SortedSet<E> |
tailSet(E fromElement) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
spliterator
parallelStream, removeIf, stream
public BoundedPriorityQueueSet(int capacity)
public BoundedPriorityQueueSet(int capacity, Comparator<E> comparator)
public BoundedPriorityQueueSet(int capacity, Collection<E> c)
public BoundedPriorityQueueSet(int capacity, Comparator<E> comparator, Collection<E> c)
public boolean add(E e)
public boolean addAll(Collection<? extends E> c)
public void clear()
public Comparator<? super E> comparator()
comparator
in interface SortedSet<E>
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
containsAll
in interface Set<E>
public boolean equals(Object o)
public int hashCode()
public boolean isEmpty()
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
public Object[] toArray()
public <T> T[] toArray(T[] a)
public int getCapacity()
getCapacity
in interface BoundedQueue<E>
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.