Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for lastKey (0.04 sec)

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

        assertThrows(NoSuchElementException.class, () -> assertNull(navigableMap.lastKey()));
      }
    
      @CollectionSize.Require(ONE)
      public void testSingletonMapFirst() {
        assertEquals(a.getKey(), navigableMap.firstKey());
      }
    
      @CollectionSize.Require(ONE)
      public void testSingletonMapLast() {
        assertEquals(a.getKey(), navigableMap.lastKey());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testFirst() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        return navigableKeySet();
      }
    
      @Override
      public @Nullable Entry<K, V> lastEntry() {
        return delegate.lastEntry();
      }
    
      @Override
      public K lastKey() {
        return delegate.lastKey();
      }
    
      @Override
      public @Nullable Entry<K, V> lowerEntry(K key) {
        return delegate.lowerEntry(checkValid(key));
      }
    
      @Override
      public @Nullable K lowerKey(K key) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/TreeBasedTable.java

          }
          return ((SortedMap<C, V>) backingRowMap).firstKey();
        }
    
        @Override
        public C lastKey() {
          updateBackingRowMapField();
          if (backingRowMap == null) {
            throw new NoSuchElementException();
          }
          return ((SortedMap<C, V>) backingRowMap).lastKey();
        }
    
        transient @Nullable SortedMap<C, V> wholeRow;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        return navigableKeySet();
      }
    
      @Override
      public @Nullable Entry<K, V> lastEntry() {
        return delegate.lastEntry();
      }
    
      @Override
      public K lastKey() {
        return delegate.lastKey();
      }
    
      @Override
      public @Nullable Entry<K, V> lowerEntry(K key) {
        return delegate.lowerEntry(checkValid(key));
      }
    
      @Override
      public @Nullable K lowerKey(K key) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TreeBasedTable.java

          }
          return ((SortedMap<C, V>) backingRowMap).firstKey();
        }
    
        @Override
        public C lastKey() {
          updateBackingRowMapField();
          if (backingRowMap == null) {
            throw new NoSuchElementException();
          }
          return ((SortedMap<C, V>) backingRowMap).lastKey();
        }
    
        transient @Nullable SortedMap<C, V> wholeRow;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ForwardingNavigableMap.java

        return Iterables.<@Nullable Entry<K, V>>getFirst(descendingMap().entrySet(), null);
      }
    
      /**
       * A sensible definition of {@link #lastKey} in terms of {@code lastEntry}. If you override {@code
       * lastEntry}, you may wish to override {@code lastKey} to forward to this implementation.
       */
      protected K standardLastKey() {
        Entry<K, V> entry = lastEntry();
        if (entry == null) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ForwardingNavigableMap.java

        return Iterables.<@Nullable Entry<K, V>>getFirst(descendingMap().entrySet(), null);
      }
    
      /**
       * A sensible definition of {@link #lastKey} in terms of {@code lastEntry}. If you override {@code
       * lastEntry}, you may wish to override {@code lastKey} to forward to this implementation.
       */
      protected K standardLastKey() {
        Entry<K, V> entry = lastEntry();
        if (entry == null) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        @Override
        @ParametricNullness
        public K firstKey() {
          return sortedMap().firstKey();
        }
    
        @Override
        @ParametricNullness
        public K lastKey() {
          return sortedMap().lastKey();
        }
    
        @Override
        public SortedMap<K, Collection<V>> headMap(@ParametricNullness K toKey) {
          return new SortedAsMap(sortedMap().headMap(toKey));
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Aug 12 15:51:57 UTC 2025
    - 48.2K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

        return comparator;
      }
    
      @Override
      public @Nullable K firstKey() {
        return sortedDelegate.firstKey();
      }
    
      @Override
      public @Nullable K lastKey() {
        return sortedDelegate.lastKey();
      }
    
      @Nullable K higher(K k) {
        Iterator<K> iterator = keySet().tailSet(k).iterator();
        while (iterator.hasNext()) {
          K tmp = iterator.next();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

          return standardFirstKey();
        }
    
        @Override
        public SortedMap<K, V> headMap(K toKey) {
          return standardHeadMap(toKey);
        }
    
        @Override
        public K lastKey() {
          return standardLastKey();
        }
    
        @Override
        public SortedMap<K, V> tailMap(K fromKey) {
          return standardTailMap(fromKey);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top