Class MinMaxPriorityQueue.Builder<B>

  • Type Parameters:
    B - the upper bound on the eventual type that can be produced by this builder (for example, a Builder<Number> can produce a Queue<Number> or Queue<Integer> but not a Queue<Object>).
    Enclosing class:
    MinMaxPriorityQueue<E>

    @Beta
    @Deprecated(since="2022-12-01")
    public static final class MinMaxPriorityQueue.Builder<B>
    extends java.lang.Object
    Deprecated.
    The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
    The builder class used in creation of min-max priority queues. Instead of constructing one directly, use MinMaxPriorityQueue.orderedBy(Comparator), MinMaxPriorityQueue.expectedSize(int) or MinMaxPriorityQueue.maximumSize(int).
    Since:
    8.0
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      <T extends B>
      MinMaxPriorityQueue<T>
      create()
      Deprecated.
      Builds a new min-max priority queue using the previously specified options, and having no initial contents.
      <T extends B>
      MinMaxPriorityQueue<T>
      create​(java.lang.Iterable<? extends T> initialContents)
      Deprecated.
      Builds a new min-max priority queue using the previously specified options, and having the given initial elements.
      MinMaxPriorityQueue.Builder<B> expectedSize​(int expectedSize)
      Deprecated.
      Configures this builder to build min-max priority queues with an initial expected size of expectedSize.
      MinMaxPriorityQueue.Builder<B> maximumSize​(int maximumSize)
      Deprecated.
      Configures this builder to build MinMaxPriorityQueue instances that are limited to maximumSize elements.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • expectedSize

        public MinMaxPriorityQueue.Builder<B> expectedSize​(int expectedSize)
        Deprecated.
        Configures this builder to build min-max priority queues with an initial expected size of expectedSize.
      • maximumSize

        public MinMaxPriorityQueue.Builder<B> maximumSize​(int maximumSize)
        Deprecated.
        Configures this builder to build MinMaxPriorityQueue instances that are limited to maximumSize elements. Each time a queue grows beyond this bound, it immediately removes its greatest element (according to its comparator), which might be the element that was just added.
      • create

        public <T extends BMinMaxPriorityQueue<T> create()
        Deprecated.
        Builds a new min-max priority queue using the previously specified options, and having no initial contents.
      • create

        public <T extends BMinMaxPriorityQueue<T> create​(java.lang.Iterable<? extends T> initialContents)
        Deprecated.
        Builds a new min-max priority queue using the previously specified options, and having the given initial elements.