Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for pollFirst (0.21 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      public void testPollFirst() {
        assertEquals(a, navigableSet.pollFirst());
        assertEquals(values.subList(1, values.size()), copyToList(navigableSet));
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testPollFirstUnsupported() {
        assertThrows(UnsupportedOperationException.class, () -> navigableSet.pollFirst());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testLowerHole() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

        @Override
        public E removeLast() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.removeLast();
        }
    
        @Override
        public @Nullable E pollFirst() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.pollFirst();
        }
    
        @Override
        public @Nullable E pollLast() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.pollLast();
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

        return delegate.last();
      }
    
      @Override
      public @Nullable E lower(E e) {
        return delegate.lower(checkValid(e));
      }
    
      @Override
      public @Nullable E pollFirst() {
        return delegate.pollFirst();
      }
    
      @Override
      public @Nullable E pollLast() {
        return delegate.pollLast();
      }
    
      @Override
      public boolean remove(Object object) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      public void testPollFirst() {
        assertEquals(a, navigableSet.pollFirst());
        assertEquals(values.subList(1, values.size()), copyToList(navigableSet));
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testPollFirstUnsupported() {
        assertThrows(UnsupportedOperationException.class, () -> navigableSet.pollFirst());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testLowerHole() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ForwardingNavigableSetTest.java

          return standardCeiling(e);
        }
    
        @Override
        public @Nullable T higher(T e) {
          return standardHigher(e);
        }
    
        @Override
        public @Nullable T pollFirst() {
          return standardPollFirst();
        }
    
        @Override
        public @Nullable T pollLast() {
          return standardPollLast();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Synchronized.java

        public E lower(E e) {
          synchronized (mutex) {
            return delegate().lower(e);
          }
        }
    
        @Override
        @CheckForNull
        public E pollFirst() {
          synchronized (mutex) {
            return delegate().pollFirst();
          }
        }
    
        @Override
        @CheckForNull
        public E pollLast() {
          synchronized (mutex) {
            return delegate().pollLast();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Synchronized.java

        public E lower(E e) {
          synchronized (mutex) {
            return delegate().lower(e);
          }
        }
    
        @Override
        @CheckForNull
        public E pollFirst() {
          synchronized (mutex) {
            return delegate().pollFirst();
          }
        }
    
        @Override
        @CheckForNull
        public E pollLast() {
          synchronized (mutex) {
            return delegate().pollLast();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
Back to top