Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for pollFirst (0.06 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-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)
  4. 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)
  5. guava/src/com/google/common/collect/ForwardingBlockingDeque.java

      }
    
      @Override
      public E takeLast() throws InterruptedException {
        return delegate().takeLast();
      }
    
      @Override
      @CheckForNull
      public E pollFirst(long timeout, TimeUnit unit) throws InterruptedException {
        return delegate().pollFirst(timeout, unit);
      }
    
      @Override
      @CheckForNull
      public E pollLast(long timeout, TimeUnit unit) throws InterruptedException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ForwardingNavigableSet.java

      }
    
      @Override
      @CheckForNull
      public E pollFirst() {
        return delegate().pollFirst();
      }
    
      /**
       * A sensible definition of {@link #pollFirst} in terms of the {@code iterator} method. If you
       * override {@link #iterator} you may wish to override {@link #pollFirst} to forward to this
       * implementation.
       */
      @CheckForNull
      protected E standardPollFirst() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ForwardingDeque.java

      @CheckForNull
      public E peekLast() {
        return delegate().peekLast();
      }
    
      @CanIgnoreReturnValue // TODO(cpovirk): Consider removing this?
      @Override
      @CheckForNull
      public E pollFirst() {
        return delegate().pollFirst();
      }
    
      @CanIgnoreReturnValue // TODO(cpovirk): Consider removing this?
      @Override
      @CheckForNull
      public E pollLast() {
        return delegate().pollLast();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ForwardingBlockingDeque.java

      }
    
      @Override
      public E takeLast() throws InterruptedException {
        return delegate().takeLast();
      }
    
      @Override
      @CheckForNull
      public E pollFirst(long timeout, TimeUnit unit) throws InterruptedException {
        return delegate().pollFirst(timeout, unit);
      }
    
      @Override
      @CheckForNull
      public E pollLast(long timeout, TimeUnit unit) throws InterruptedException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ForwardingBlockingDeque.java

      }
    
      @Override
      public E takeLast() throws InterruptedException {
        return delegate().takeLast();
      }
    
      @Override
      @CheckForNull
      public E pollFirst(long timeout, TimeUnit unit) throws InterruptedException {
        return delegate().pollFirst(timeout, unit);
      }
    
      @Override
      @CheckForNull
      public E pollLast(long timeout, TimeUnit unit) throws InterruptedException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/SortedMultisets.java

        }
    
        @Override
        public Iterator<E> descendingIterator() {
          return descendingSet().iterator();
        }
    
        @Override
        @CheckForNull
        public E pollFirst() {
          return getElementOrNull(multiset().pollFirstEntry());
        }
    
        @Override
        @CheckForNull
        public E pollLast() {
          return getElementOrNull(multiset().pollLastEntry());
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 5.6K bytes
    - Viewed (0)
Back to top