Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for MinMaxPriorityQueue (0.25 sec)

  1. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

      }
    
      /**
       * The builder class used in creation of min-max priority queues. Instead of constructing one
       * directly, use {@link MinMaxPriorityQueue#orderedBy(Comparator)}, {@link
       * MinMaxPriorityQueue#expectedSize(int)} or {@link MinMaxPriorityQueue#maximumSize(int)}.
       *
       * @param <B> the upper bound on the eventual type that can be produced by this builder (for
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      }
    
      public void testIsEvenLevel() {
        assertTrue(MinMaxPriorityQueue.isEvenLevel(0));
        assertFalse(MinMaxPriorityQueue.isEvenLevel(1));
        assertFalse(MinMaxPriorityQueue.isEvenLevel(2));
        assertTrue(MinMaxPriorityQueue.isEvenLevel(3));
    
        assertFalse(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 2));
        assertTrue(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 1));
    
        int i = 1 << 29;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      }
    
      public void testIsEvenLevel() {
        assertTrue(MinMaxPriorityQueue.isEvenLevel(0));
        assertFalse(MinMaxPriorityQueue.isEvenLevel(1));
        assertFalse(MinMaxPriorityQueue.isEvenLevel(2));
        assertTrue(MinMaxPriorityQueue.isEvenLevel(3));
    
        assertFalse(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 2));
        assertTrue(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 1));
    
        int i = 1 << 29;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

       * MinMaxPriorityQueue, except poll, which is forwarded to pollMax. That way we can benchmark
       * pollMax using the same code that benchmarks poll.
       */
      static final class InvertedMinMaxPriorityQueue<T> extends ForwardingQueue<T> {
        MinMaxPriorityQueue<T> mmHeap;
    
        public InvertedMinMaxPriorityQueue(Comparator<T> comparator) {
          mmHeap = MinMaxPriorityQueue.orderedBy(comparator).create();
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

       * MinMaxPriorityQueue, except poll, which is forwarded to pollMax. That way we can benchmark
       * pollMax using the same code that benchmarks poll.
       */
      static final class InvertedMinMaxPriorityQueue<T> extends ForwardingQueue<T> {
        MinMaxPriorityQueue<T> mmHeap;
    
        public InvertedMinMaxPriorityQueue(Comparator<T> comparator) {
          mmHeap = MinMaxPriorityQueue.orderedBy(comparator).create();
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/package-info.java

     * an example, see {@link ForwardingCollection}.
     *
     * <h2>Other</h2>
     *
     * <ul>
     *   <li>{@link EvictingQueue}
     *   <li>{@link Interner}, {@link Interners}
     *   <li>{@link MapMaker}
     *   <li>{@link MinMaxPriorityQueue}
     *   <li>{@link PeekingIterator}
     * </ul>
     */
    @CheckReturnValue
    @ParametersAreNonnullByDefault
    package com.google.common.collect;
    
    import com.google.errorprone.annotations.CheckReturnValue;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jul 06 16:29:45 GMT 2023
    - 5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

        };
      }
    
      enum QueueImpl implements CollectionsImplEnum {
        MinMaxPriorityQueueImpl {
          @Override
          public <E extends Comparable<E>> Queue<E> create(Collection<E> contents) {
            return MinMaxPriorityQueue.create(contents);
          }
        };
      }
    
      enum TableImpl {
        HashBasedTableImpl {
          @Override
          <R extends Comparable<R>, C extends Comparable<C>, V> Table<R, C, V> create(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Mar 04 04:06:35 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

        };
      }
    
      enum QueueImpl implements CollectionsImplEnum {
        MinMaxPriorityQueueImpl {
          @Override
          public <E extends Comparable<E>> Queue<E> create(Collection<E> contents) {
            return MinMaxPriorityQueue.create(contents);
          }
        };
      }
    
      enum TableImpl {
        HashBasedTableImpl {
          @Override
          <R extends Comparable<R>, C extends Comparable<C>, V> Table<R, C, V> create(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 04 04:06:35 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Queues.java

       *
       * <p>It is imperative that the user manually synchronize on the returned queue when accessing the
       * queue's iterator:
       *
       * <pre>{@code
       * Queue<E> queue = Queues.synchronizedQueue(MinMaxPriorityQueue.<E>create());
       * ...
       * queue.add(element);  // Needn't be in synchronized block
       * ...
       * synchronized (queue) {  // Must synchronize on queue!
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
Back to top