Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for PriorityQueue (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava/src/com/google/common/collect/Queues.java

      public static <E extends Comparable> PriorityQueue<E> newPriorityQueue() {
        return new PriorityQueue<>();
      }
    
      /**
       * Creates a {@code PriorityQueue} containing the given elements.
       *
       * <p><b>Note:</b> If the specified iterable is a {@code SortedSet} or a {@code PriorityQueue},
       * this priority queue will be ordered according to the same ordering.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 18K bytes
    - Click Count (0)
  2. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

          int initialCapacity, @Nullable Comparator<? super E> comparator) {
        q = new PriorityQueue<E>(initialCapacity, comparator);
      }
    
      /**
       * Creates a {@code MonitorBasedPriorityBlockingQueue} containing the elements in the specified
       * collection. If the specified collection is a {@link SortedSet} or a {@link PriorityQueue}, this
       * priority queue will be ordered according to the same ordering. Otherwise, this priority queue
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 19K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

     * as the traditional heap data structure used in {@link PriorityQueue}.
     *
     * <p>This class is not thread-safe, and does not accept null elements.
     *
     * <p><i>Performance notes:</i>
     *
     * <ul>
     *   <li>If you only access one end of the queue, and do use a maximum size, this class will perform
     *       significantly worse than a {@code PriorityQueue} with manual eviction above the maximum
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 13:11:08 GMT 2026
    - 34K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        }
      }
    
      public void testCorrectOrdering_randomAccess() {
        long seed = new Random().nextLong();
        Random random = new Random(seed);
        PriorityQueue<Integer> control = new PriorityQueue<>();
        MinMaxPriorityQueue<Integer> q = MinMaxPriorityQueue.create();
        for (int i = 0; i < 73; i++) { // 73 is a childless uncle case.
          Integer element = random.nextInt();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 13:11:08 GMT 2026
    - 36.2K bytes
    - Click Count (0)
  5. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertTrue(ArbitraryInstances.get(PriorityQueue.class).isEmpty());
        assertTrue(ArbitraryInstances.get(BitSet.class).isEmpty());
        assertTrue(ArbitraryInstances.get(TreeSet.class).isEmpty());
        assertTrue(ArbitraryInstances.get(TreeMap.class).isEmpty());
        assertFreshInstanceReturned(
            LinkedList.class,
            Deque.class,
            Queue.class,
            PriorityQueue.class,
            BitSet.class,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.8K bytes
    - Click Count (0)
Back to Top