Class MultiviewSet.PrioritisedView

java.lang.Object
org.ojalgo.concurrent.MultiviewSet.PrioritisedView
Enclosing class:
MultiviewSet<T>

public final class MultiviewSet.PrioritisedView extends Object
  • Field Details

  • Constructor Details

    • PrioritisedView

      PrioritisedView(Set<T> initial, Comparator<? super T> comparator)
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • offer

      public void offer(T entry)
      The entry is also added to the common Set 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(Object entry)