Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for headMap (0.04 sec)

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

      /**
       * A sensible definition of {@link #lowerEntry} in terms of the {@code lastEntry()} of {@link
       * #headMap(Object, boolean)}. If you override {@code headMap}, you may wish to override {@code
       * lowerEntry} to forward to this implementation.
       */
      protected @Nullable Entry<K, V> standardLowerEntry(@ParametricNullness K key) {
        return headMap(key, false).lastEntry();
      }
    
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ForwardingNavigableMap.java

      /**
       * A sensible definition of {@link #lowerEntry} in terms of the {@code lastEntry()} of {@link
       * #headMap(Object, boolean)}. If you override {@code headMap}, you may wish to override {@code
       * lowerEntry} to forward to this implementation.
       */
      protected @Nullable Entry<K, V> standardLowerEntry(@ParametricNullness K key) {
        return headMap(key, false).lastEntry();
      }
    
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AbstractNavigableMap.java

          return entry.getKey();
        }
      }
    
      @Override
      public @Nullable Entry<K, V> lowerEntry(@ParametricNullness K key) {
        return headMap(key, false).lastEntry();
      }
    
      @Override
      public @Nullable Entry<K, V> floorEntry(@ParametricNullness K key) {
        return headMap(key, true).lastEntry();
      }
    
      @Override
      public @Nullable Entry<K, V> ceilingEntry(@ParametricNullness K key) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        return delegate.get(checkValid(key));
      }
    
      @Override
      public SortedMap<K, V> headMap(K toKey) {
        return headMap(toKey, false);
      }
    
      @Override
      public NavigableMap<K, V> headMap(K toKey, boolean inclusive) {
        return new SafeTreeMap<>(delegate.headMap(checkValid(toKey), inclusive));
      }
    
      @Override
      public @Nullable Entry<K, V> higherEntry(K key) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/AbstractNavigableMap.java

          return entry.getKey();
        }
      }
    
      @Override
      public @Nullable Entry<K, V> lowerEntry(@ParametricNullness K key) {
        return headMap(key, false).lastEntry();
      }
    
      @Override
      public @Nullable Entry<K, V> floorEntry(@ParametricNullness K key) {
        return headMap(key, true).lastEntry();
      }
    
      @Override
      public @Nullable Entry<K, V> ceilingEntry(@ParametricNullness K key) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(Integer.valueOf(4), map.get("four"));
        SortedMap<String, Integer> headMap = map.headMap("two");
        assertEquals(ImmutableSortedMap.of("four", 4, "one", 3, "three", 5), headMap);
        strings.add("five");
        strings.remove("one");
        assertEquals(ImmutableSortedMap.of("five", 4, "four", 4, "three", 5), headMap);
        assertThat(map.entrySet())
            .containsExactly(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ForwardingSortedMap.java

      }
    
      @Override
      @ParametricNullness
      public K firstKey() {
        return delegate().firstKey();
      }
    
      @Override
      public SortedMap<K, V> headMap(@ParametricNullness K toKey) {
        return delegate().headMap(toKey);
      }
    
      @Override
      @ParametricNullness
      public K lastKey() {
        return delegate().lastKey();
      }
    
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 16:28:01 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        return delegate.get(checkValid(key));
      }
    
      @Override
      public SortedMap<K, V> headMap(K toKey) {
        return headMap(toKey, false);
      }
    
      @Override
      public NavigableMap<K, V> headMap(K toKey, boolean inclusive) {
        return new SafeTreeMap<>(delegate.headMap(checkValid(toKey), inclusive));
      }
    
      @Override
      public @Nullable Entry<K, V> higherEntry(K key) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(Integer.valueOf(4), map.get("four"));
        SortedMap<String, Integer> headMap = map.headMap("two");
        assertEquals(ImmutableSortedMap.of("four", 4, "one", 3, "three", 5), headMap);
        strings.add("five");
        strings.remove("one");
        assertEquals(ImmutableSortedMap.of("five", 4, "four", 4, "three", 5), headMap);
        assertThat(map.entrySet())
            .containsExactly(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 65K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        }
    
        @Override
        public NavigableMap<K, Collection<V>> headMap(@ParametricNullness K toKey) {
          return headMap(toKey, false);
        }
    
        @Override
        public NavigableMap<K, Collection<V>> headMap(@ParametricNullness K toKey, boolean inclusive) {
          return new NavigableAsMap(sortedMap().headMap(toKey, inclusive));
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 48.4K bytes
    - Viewed (0)
Back to top