- java.lang.Object
-
- org.ojalgo.concurrent.MultiviewSet.PrioritisedView
-
- Enclosing class:
- MultiviewSet<T>
public final class MultiviewSet.PrioritisedView extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PrioritisedView(java.util.Set<T> initial, java.util.Comparator<? super T> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanadd(T entry)(package private) voidclear()booleanisEmpty()voidoffer(T entry)The entry is also added to the commonSetand therefore to all views backed by it.Tpoll()(package private) booleanremove(java.lang.Object entry)intsize()
-
-
-
Field Detail
-
myQueue
private final java.util.concurrent.PriorityBlockingQueue<T> myQueue
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
offer
public void offer(T entry)
The entry is also added to the commonSetand therefore to all views backed by it.
-
poll
public T poll()
- Returns:
- The highest priority item (that also existed in the backing
Set)
-
size
public int size()
-
add
boolean add(T entry)
-
clear
void clear()
-
remove
boolean remove(java.lang.Object entry)
-
-