Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 31 for headMap (0.05 seconds)

  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
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 14.1K bytes
    - Click Count (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
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 14.3K bytes
    - Click Count (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) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 4.3K bytes
    - Click Count (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) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 7.5K bytes
    - Click Count (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) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 4.3K bytes
    - Click Count (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(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 62.7K bytes
    - Click Count (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
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Feb 12 16:28:01 GMT 2025
    - 5.7K bytes
    - Click Count (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) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 7.5K bytes
    - Click Count (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(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 65K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

      public void testLast() {
        assertEquals(c.getKey(), navigableMap.lastKey());
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testHeadMapExclusive() {
        assertFalse(navigableMap.headMap(a.getKey()).containsKey(a.getKey()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testTailMapInclusive() {
        assertTrue(navigableMap.tailMap(a.getKey()).containsKey(a.getKey()));
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 6.2K bytes
    - Click Count (0)
Back to Top