Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for lowerEntry (0.07 sec)

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

        if (entry == null) {
          throw new NoSuchElementException();
        } else {
          return entry.getKey();
        }
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> lowerEntry(@ParametricNullness K key) {
        return headMap(key, false).lastEntry();
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> floorEntry(@ParametricNullness K key) {
        return headMap(key, true).lastEntry();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 15 18:11:44 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/TreeRangeMap.java

      private Range<K> coalescedRange(Range<K> range, V value) {
        Range<K> coalescedRange = range;
        Entry<Cut<K>, RangeMapEntry<K, V>> lowerEntry =
            entriesByLowerBound.lowerEntry(range.lowerBound);
        coalescedRange = coalesce(coalescedRange, value, lowerEntry);
    
        Entry<Cut<K>, RangeMapEntry<K, V>> higherEntry =
            entriesByLowerBound.floorEntry(range.upperBound);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java

      public void testLower() {
        resetWithHole();
        assertEquals(null, navigableMap.lowerEntry(a.getKey()));
        assertEquals(null, navigableMap.lowerKey(a.getKey()));
        assertEquals(a, navigableMap.lowerEntry(b.getKey()));
        assertEquals(a.getKey(), navigableMap.lowerKey(b.getKey()));
        assertEquals(a, navigableMap.lowerEntry(c.getKey()));
        assertEquals(a.getKey(), navigableMap.lowerKey(c.getKey()));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/TreeRangeMap.java

      private Range<K> coalescedRange(Range<K> range, V value) {
        Range<K> coalescedRange = range;
        Entry<Cut<K>, RangeMapEntry<K, V>> lowerEntry =
            entriesByLowerBound.lowerEntry(range.lowerBound);
        coalescedRange = coalesce(coalescedRange, value, lowerEntry);
    
        Entry<Cut<K>, RangeMapEntry<K, V>> higherEntry =
            entriesByLowerBound.floorEntry(range.upperBound);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

                    MapFeature.ALLOWS_NULL_VALUES,
                    CollectionFeature.SUPPORTS_ITERATOR_REMOVE,
                    MapFeature.GENERAL_PURPOSE)
                /*
                 * StandardDescendingMap uses lowerEntry(), and TreeMap.lowerEntry() deliberately
                 * produces immutable entries.
                 *
                 * TODO(cpovirk): Consider making StandardDescendingMap return a ForwardingEntry that
                 * supports setValue().
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/AbstractNavigableMap.java

        if (entry == null) {
          throw new NoSuchElementException();
        } else {
          return entry.getKey();
        }
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> lowerEntry(@ParametricNullness K key) {
        return headMap(key, false).lastEntry();
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> floorEntry(@ParametricNullness K key) {
        return headMap(key, true).lastEntry();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 15 18:11:44 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java

          assertTrue(Thread.holdsLock(mutex));
          return delegate().lastEntry();
        }
    
        @Override
        public @Nullable Entry<K, V> lowerEntry(K key) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate().lowerEntry(key);
        }
    
        @Override
        public @Nullable K lowerKey(K key) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate().lowerKey(key);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        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) {
        return delegate.lowerKey(checkValid(key));
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        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) {
        return delegate.lowerKey(checkValid(key));
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

      }
    
      <K, V> void testNavigationAgainstExpected(
          NavigableMap<K, V> expected, NavigableMap<K, V> navigableMap, Iterable<K> keysToTest) {
        for (K key : keysToTest) {
          assertEquals(expected.lowerEntry(key), navigableMap.lowerEntry(key));
          assertEquals(expected.floorEntry(key), navigableMap.floorEntry(key));
          assertEquals(expected.ceilingEntry(key), navigableMap.ceilingEntry(key));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
Back to top