Package org.ojalgo.concurrent
Class MultiviewSet.PrioritisedView
- 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) boolean
add(T entry)
(package private) void
clear()
boolean
isEmpty()
void
offer(T entry)
The entry is also added to the commonSet
and therefore to all views backed by it.T
poll()
(package private) boolean
remove(java.lang.Object entry)
int
size()
-
-
-
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 commonSet
and 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)
-
-