Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for pollFirst (0.05 sec)

  1. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

            control.add(element);
            q.add(element);
          } else {
            assertEqualsUsingSeed(seed, control.poll(), q.pollFirst());
          }
        }
        while (!control.isEmpty()) {
          assertEqualsUsingSeed(seed, control.poll(), q.pollFirst());
        }
        assertTrue(q.isEmpty());
      }
    
      public void testExhaustive_pollAndPush() {
        int size = 5;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 36.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

            NavigableSet<Integer> filtered = filter(createUnfiltered(contents), EVEN);
            NavigableSet<Integer> unfiltered = createUnfiltered(filtered);
    
            assertEquals(unfiltered.pollFirst(), filtered.pollFirst());
            assertEquals(unfiltered, filtered);
          }
        }
    
        public void testPollLast() {
          for (List<Integer> contents : SAMPLE_INPUTS) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        }
    
        @Override
        public @Nullable V higher(@ParametricNullness V v) {
          return getSortedSetDelegate().higher(v);
        }
    
        @Override
        public @Nullable V pollFirst() {
          return Iterators.pollNext(iterator());
        }
    
        @Override
        public @Nullable V pollLast() {
          return Iterators.pollNext(descendingIterator());
        }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 48.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        }
      }
    
      /**
       * Removes and returns the least element of this queue, or returns {@code null} if the queue is
       * empty.
       */
      @CanIgnoreReturnValue
      public @Nullable E pollFirst() {
        return poll();
      }
    
      /**
       * Removes and returns the least element of this queue.
       *
       * @throws NoSuchElementException if the queue is empty
       */
      @CanIgnoreReturnValue
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 33.9K bytes
    - Viewed (0)
Back to top