Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for pollFirst (0.06 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36K 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 Sep 05 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Aug 12 15:51:57 UTC 2025
    - 48.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/SetsTest.java

        }
        try {
          unmod.addAll(singleton(4));
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          unmod.pollFirst();
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          unmod.pollLast();
          fail("UnsupportedOperationException expected");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       */
      @CanIgnoreReturnValue
      @Deprecated
      @GwtIncompatible // NavigableSet
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final @Nullable E pollFirst() {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the set unmodified.
       *
       * @since 12.0
       * @throws UnsupportedOperationException always
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.8K bytes
    - Viewed (0)
Back to top