Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for unmodifiableSortedMap (0.15 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.Maps.newTreeMap;
    import static java.util.Collections.singletonMap;
    import static java.util.Collections.unmodifiableSortedMap;
    
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.SortedMap;
    import java.util.TreeMap;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

                    SortedMap<String, String> map = populate(new TreeMap<String, String>(), entries);
                    return Collections.unmodifiableSortedMap(map);
                  }
                })
            .named("unmodifiableSortedMap/TreeMap, natural")
            .withFeatures(
                MapFeature.ALLOWS_NULL_VALUES,
                CollectionFeature.KNOWN_ORDER,
                CollectionFeature.SERIALIZABLE,
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 16 03:23:31 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Tables.java

    import static com.google.common.collect.NullnessCasts.uncheckedCastNullableTToT;
    import static java.util.Collections.unmodifiableMap;
    import static java.util.Collections.unmodifiableSortedMap;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Function;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          comparator = (Comparator<? super K>) NATURAL_ORDER;
        }
        if (map instanceof ImmutableSortedMap) {
          // TODO(kevinb): Prove that this cast is safe, even though
          // Collections.unmodifiableSortedMap requires the same key type.
          @SuppressWarnings("unchecked")
          ImmutableSortedMap<K, V> kvMap = (ImmutableSortedMap<K, V>) map;
          if (!kvMap.isPartialView()) {
            return kvMap;
          }
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 52.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

        }
      }
    
      private static <K extends @Nullable Object, V extends @Nullable Object> Map<K, V> unmodifiableMap(
          Map<K, ? extends V> map) {
        if (map instanceof SortedMap) {
          return Collections.unmodifiableSortedMap((SortedMap<K, ? extends V>) map);
        } else {
          return Collections.unmodifiableMap(map);
        }
      }
    
      private static class MapDifferenceImpl<K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 157.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Maps.java

        }
      }
    
      private static <K extends @Nullable Object, V extends @Nullable Object> Map<K, V> unmodifiableMap(
          Map<K, ? extends V> map) {
        if (map instanceof SortedMap) {
          return Collections.unmodifiableSortedMap((SortedMap<K, ? extends V>) map);
        } else {
          return Collections.unmodifiableMap(map);
        }
      }
    
      private static class MapDifferenceImpl<K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 163.5K bytes
    - Viewed (0)
Back to top