Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for navigableMap (0.12 sec)

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

        assertNull(navigableMap.lowerEntry(k0()));
        assertNull(navigableMap.lowerKey(k0()));
        assertNull(navigableMap.floorEntry(k0()));
        assertNull(navigableMap.floorKey(k0()));
        assertNull(navigableMap.ceilingEntry(k0()));
        assertNull(navigableMap.ceilingKey(k0()));
        assertNull(navigableMap.higherEntry(k0()));
        assertNull(navigableMap.higherKey(k0()));
      }
    
      @CollectionSize.Require(ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java

      @Override
      protected <K, V> NavigableMap<K, V> create() {
        @SuppressWarnings("unchecked")
        NavigableMap<K, V> innermost =
            new SafeTreeMap<>((Comparator<? super K>) Ordering.natural().nullsFirst());
        TestMap<K, V> inner = new TestMap<>(innermost, mutex);
        NavigableMap<K, V> outer = Synchronized.navigableMap(inner, mutex);
        return outer;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 12.2K bytes
    - Viewed (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)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java

            TestSortedMapGenerator<K, V> delegate, Bound to, Bound from) {
          super(delegate, to, from);
        }
    
        @Override
        NavigableMap<K, V> createSubMap(SortedMap<K, V> sortedMap, K firstExclusive, K lastExclusive) {
          NavigableMap<K, V> map = (NavigableMap<K, V>) sortedMap;
          if (from == Bound.NO_BOUND && to == Bound.INCLUSIVE) {
            return map.headMap(lastInclusive, true);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

    @GwtIncompatible
    public final class SafeTreeMap<K, V> implements Serializable, NavigableMap<K, V> {
      @SuppressWarnings("unchecked")
      private static final Comparator<Object> NATURAL_ORDER =
          new Comparator<Object>() {
            @Override
            public int compare(Object o1, Object o2) {
              return ((Comparable<Object>) o1).compareTo(o2);
            }
          };
    
      private final NavigableMap<K, V> delegate;
    
      public SafeTreeMap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Maps.java

       * @since 12.0
       */
      @GwtIncompatible // NavigableMap
      public static <K extends @Nullable Object, V extends @Nullable Object>
          NavigableMap<K, V> unmodifiableNavigableMap(NavigableMap<K, ? extends V> map) {
        checkNotNull(map);
        if (map instanceof UnmodifiableNavigableMap) {
          @SuppressWarnings("unchecked") // covariant
          NavigableMap<K, V> result = (NavigableMap<K, V>) map;
          return result;
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Maps.java

       * @since 12.0
       */
      @GwtIncompatible // NavigableMap
      public static <K extends @Nullable Object, V extends @Nullable Object>
          NavigableMap<K, V> unmodifiableNavigableMap(NavigableMap<K, ? extends V> map) {
        checkNotNull(map);
        if (map instanceof UnmodifiableNavigableMap) {
          @SuppressWarnings("unchecked") // covariant
          NavigableMap<K, V> result = (NavigableMap<K, V>) map;
          return result;
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  8. 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)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

        new ForwardingWrapperTester()
            .testForwarding(
                NavigableMap.class,
                new Function<NavigableMap, NavigableMap>() {
                  @Override
                  public NavigableMap apply(NavigableMap delegate) {
                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        NavigableMap<Integer, String> map1 = ImmutableSortedMap.of(1, "one");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/AbstractNavigableMap.java

    import java.util.Iterator;
    import java.util.NavigableMap;
    import java.util.NavigableSet;
    import java.util.NoSuchElementException;
    import java.util.Set;
    import java.util.SortedMap;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Skeletal implementation of {@link NavigableMap}.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 15 18:11:44 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top