Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 56 for lastKey (0.14 seconds)

  1. android/guava/src/com/google/common/collect/Synchronized.java

          synchronized (mutex) {
            return sortedMap(delegate().headMap(toKey), mutex);
          }
        }
    
        @Override
        public K lastKey() {
          synchronized (mutex) {
            return delegate().lastKey();
          }
        }
    
        @Override
        public SortedMap<K, V> subMap(K fromKey, K toKey) {
          synchronized (mutex) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 53K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/Synchronized.java

          synchronized (mutex) {
            return sortedMap(delegate().headMap(toKey), mutex);
          }
        }
    
        @Override
        public K lastKey() {
          synchronized (mutex) {
            return delegate().lastKey();
          }
        }
    
        @Override
        public SortedMap<K, V> subMap(K fromKey, K toKey) {
          synchronized (mutex) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 56.9K bytes
    - Click Count (0)
  3. 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() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  4. 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() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/FilteredSortedMapTest.java

        unfiltered.put("dog", 5);
    
        SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH);
        assertThat(filtered.firstKey()).isEqualTo("banana");
        assertThat(filtered.lastKey()).isEqualTo("cat");
      }
    
      public void testHeadSubTailMap_filteredMap() {
        SortedMap<String, Integer> unfiltered = createUnfiltered();
        unfiltered.put("apple", 2);
        unfiltered.put("banana", 6);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/ImmutableSortedMap.java

      @Override
      public Comparator<? super K> comparator() {
        return keySet().comparator();
      }
    
      @Override
      public K firstKey() {
        return keySet().first();
      }
    
      @Override
      public K lastKey() {
        return keySet().last();
      }
    
      private ImmutableSortedMap<K, V> getSubMap(int fromIndex, int toIndex) {
        if (fromIndex == 0 && toIndex == size()) {
          return this;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 08 18:10:02 GMT 2026
    - 52.1K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      @Override
      public Comparator<? super K> comparator() {
        return keySet().comparator();
      }
    
      @Override
      public K firstKey() {
        return keySet().first();
      }
    
      @Override
      public K lastKey() {
        return keySet().last();
      }
    
      private ImmutableSortedMap<K, V> getSubMap(int fromIndex, int toIndex) {
        if (fromIndex == 0 && toIndex == size()) {
          return this;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 08 18:10:02 GMT 2026
    - 54.7K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        SortedMap<String, Collection<Integer>> asMap = multimap.asMap();
        assertEquals(Ordering.natural(), asMap.comparator());
        assertThat(asMap.firstKey()).isEqualTo("foo");
        assertThat(asMap.lastKey()).isEqualTo("tree");
        Set<Integer> fooValues = ImmutableSet.of(1, 3, 7);
        Set<Integer> googleValues = ImmutableSet.of(2, 6);
        Set<Integer> treeValues = ImmutableSet.of(4, 0);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.5K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        SortedMap<String, Collection<Integer>> asMap = multimap.asMap();
        assertEquals(Ordering.natural(), asMap.comparator());
        assertThat(asMap.firstKey()).isEqualTo("foo");
        assertThat(asMap.lastKey()).isEqualTo("tree");
        Set<Integer> fooValues = ImmutableSet.of(1, 3, 7);
        Set<Integer> googleValues = ImmutableSet.of(2, 6);
        Set<Integer> treeValues = ImmutableSet.of(4, 0);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.5K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        removeFromReplica(replica, replicatedMinValue);
      }
    
      private static void removeMaxFromReplica(
          SortedMap<Integer, AtomicInteger> replica, int maxValue) {
        Integer replicatedMaxValue = replica.lastKey();
        assertTrue("maxValue is incorrect", replicatedMaxValue == maxValue);
        removeFromReplica(replica, replicatedMaxValue);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 13:11:08 GMT 2026
    - 36.2K bytes
    - Click Count (0)
Back to Top