Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for pollLastEntry (0.08 sec)

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

        assertEquals(c, navigableMap.pollLastEntry());
        assertEquals(entries.subList(0, entries.size() - 1), copyToList(navigableMap.entrySet()));
      }
    
      @MapFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testPollLastUnsupported() {
        assertThrows(UnsupportedOperationException.class, () -> navigableMap.pollLastEntry());
      }
    
      @CollectionSize.Require(SEVERAL)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      public void testPollLast() {
        assertEquals(c, sortedMultiset.pollLastEntry());
        assertEquals(asList(a, b), copyToList(sortedMultiset.entrySet()));
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testPollLastUnsupported() {
        assertThrows(UnsupportedOperationException.class, () -> sortedMultiset.pollLastEntry());
      }
    
      @CollectionSize.Require(SEVERAL)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      public void testPollLast() {
        assertEquals(c, sortedMultiset.pollLastEntry());
        assertEquals(asList(a, b), copyToList(sortedMultiset.entrySet()));
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testPollLastUnsupported() {
        assertThrows(UnsupportedOperationException.class, () -> sortedMultiset.pollLastEntry());
      }
    
      @CollectionSize.Require(SEVERAL)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java

      }
    
      @Override
      @CheckForNull
      public Entry<E> pollFirstEntry() {
        throw new UnsupportedOperationException();
      }
    
      @Override
      @CheckForNull
      public Entry<E> pollLastEntry() {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public SortedMultiset<E> headMultiset(@ParametricNullness E upperBound, BoundType boundType) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Synchronized.java

            return nullableSynchronizedEntry(delegate().pollFirstEntry(), mutex);
          }
        }
    
        @Override
        @CheckForNull
        public Map.Entry<K, V> pollLastEntry() {
          synchronized (mutex) {
            return nullableSynchronizedEntry(delegate().pollLastEntry(), mutex);
          }
        }
    
        @Override
        public NavigableMap<K, V> subMap(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Synchronized.java

            return nullableSynchronizedEntry(delegate().pollFirstEntry(), mutex);
          }
        }
    
        @Override
        @CheckForNull
        public Map.Entry<K, V> pollLastEntry() {
          synchronized (mutex) {
            return nullableSynchronizedEntry(delegate().pollLastEntry(), mutex);
          }
        }
    
        @Override
        public NavigableMap<K, V> subMap(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedMap.java

       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      @CheckForNull
      public final Entry<K, V> pollLastEntry() {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public ImmutableSortedMap<K, V> descendingMap() {
        // TODO(kevinb): The descendingMap is never actually cached at all. Either:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      @CheckForNull
      public final Entry<K, V> pollLastEntry() {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public ImmutableSortedMap<K, V> descendingMap() {
        // TODO(kevinb): The descendingMap is never actually cached at all. Either:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
Back to top