Class MultiviewSet.PrioritisedView

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

public final class MultiviewSet.PrioritisedView extends Object
Author:
apete
  • 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.
    • peek

      public T peek()
      Highest-priority item without removing it, or null if empty. May briefly return an entry already polled through another view; callers needing only a conservative bound can tolerate that.
    • poll

      public T poll()
      Returns:
      The highest priority item (that also existed in the backing Set)
    • size

      public int size()