Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ImmutableSortedSet (0.06 sec)

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

          new ImmutableSortedMap<>(ImmutableSortedSet.emptySet(Ordering.natural()), ImmutableList.of());
    
      static <K, V> ImmutableSortedMap<K, V> emptyMap(Comparator<? super K> comparator) {
        if (Ordering.natural().equals(comparator)) {
          return of();
        } else {
          return new ImmutableSortedMap<>(ImmutableSortedSet.emptySet(comparator), ImmutableList.of());
        }
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 52.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

      // TreeSet
    
      /**
       * Creates a <i>mutable</i>, empty {@code TreeSet} instance sorted by the natural sort ordering of
       * its elements.
       *
       * <p><b>Note:</b> if mutability is not required, use {@link ImmutableSortedSet#of()} instead.
       *
       * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated. Instead,
       * use the {@code TreeSet} constructor directly, taking advantage of <a
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MapsTest.java

            () -> map.headMap("r", false).tailMap("m", true).keySet().add("a"));
      }
    
      @GwtIncompatible // NavigableMap
      public void testAsMapNavigableEmpty() {
        NavigableSet<String> strings = ImmutableSortedSet.of();
        NavigableMap<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
        assertThat(map.entrySet()).isEmpty();
        assertTrue(map.isEmpty());
        assertThat(map.get("five")).isNull();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

            () -> map.headMap("r", false).tailMap("m", true).keySet().add("a"));
      }
    
      @GwtIncompatible // NavigableMap
      public void testAsMapNavigableEmpty() {
        NavigableSet<String> strings = ImmutableSortedSet.of();
        NavigableMap<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
        assertThat(map.entrySet()).isEmpty();
        assertTrue(map.isEmpty());
        assertThat(map.get("five")).isNull();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 65K bytes
    - Viewed (0)
Back to top