- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for MinMaxPriorityQueue (0.81 sec)
-
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(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 4.4K bytes - Viewed (0) -
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;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 36K bytes - Viewed (0) -
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 @NullMarked package com.google.common.collect; import com.google.errorprone.annotations.CheckReturnValue;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 5K bytes - Viewed (0) -
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 @NullMarked package com.google.common.collect; import com.google.errorprone.annotations.CheckReturnValue;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 5K bytes - Viewed (0) -
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(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 12.5K bytes - Viewed (0) -
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: * * {@snippet : * Queue<E> queue = Queues.synchronizedQueue(MinMaxPriorityQueue.<E>create()); * ... * queue.add(element); // Needn't be in synchronized block * ... * synchronized (queue) { // Must synchronize on queue!
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.3K bytes - Viewed (0) -
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: * * {@snippet : * Queue<E> queue = Queues.synchronizedQueue(MinMaxPriorityQueue.<E>create()); * ... * queue.add(element); // Needn't be in synchronized block * ... * synchronized (queue) { // Must synchronize on queue!
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.1K bytes - Viewed (0)