Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 64 for ImmutableSortedMap (0.2 sec)

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

        if (ranges.isEmpty()) {
          return ImmutableMap.of();
        }
        RegularImmutableSortedSet<Range<K>> rangeSet =
            new RegularImmutableSortedSet<>(ranges, Range.<K>rangeLexOrdering());
        return new ImmutableSortedMap<>(rangeSet, values);
      }
    
      @Override
      public ImmutableMap<Range<K>, V> asDescendingMapOfRanges() {
        if (ranges.isEmpty()) {
          return ImmutableMap.of();
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        TreeMap<K, V> map = Maps.newTreeMap();
        map.put(key, value);
        return map;
      }
    
      @Generates
      static <K extends Comparable<? super K>, V> ImmutableSortedMap<K, V> generateImmutableSortedMap(
          K key, V value) {
        return ImmutableSortedMap.of(key, value);
      }
    
      @Generates
      static <K, V> Multimap<K, V> generateMultimap(@Nullable K key, @Nullable V value) {
        return generateListMultimap(key, value);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java

     * conformance of concrete {@link SortedMap} subclasses to that contract.
     *
     * @author Jared Levy
     */
    // TODO: Use this class to test classes besides ImmutableSortedMap.
    @GwtCompatible
    public abstract class SortedMapInterfaceTest<K, V> extends MapInterfaceTest<K, V> {
    
      protected SortedMapInterfaceTest(
          boolean allowsNullKeys,
          boolean allowsNullValues,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java

     * conformance of concrete {@link SortedMap} subclasses to that contract.
     *
     * @author Jared Levy
     */
    // TODO: Use this class to test classes besides ImmutableSortedMap.
    @GwtCompatible
    public abstract class SortedMapInterfaceTest<K, V> extends MapInterfaceTest<K, V> {
    
      protected SortedMapInterfaceTest(
          boolean allowsNullKeys,
          boolean allowsNullValues,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TreeRangeSet.java

          if (window.isConnected(upperBoundWindow)) {
            return new RangesByUpperBound<>(rangesByLowerBound, window.intersection(upperBoundWindow));
          } else {
            return ImmutableSortedMap.of();
          }
        }
    
        @Override
        public NavigableMap<Cut<C>, Range<C>> subMap(
            Cut<C> fromKey, boolean fromInclusive, Cut<C> toKey, boolean toInclusive) {
          return subMap(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 32.5K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

     * Collections#singletonMap(Object, Object)} and {@link java.util.LinkedHashMap} for empty,
     * singleton and regular maps respectively. For sorted maps, it's a thin wrapper around {@link
     * java.util.TreeMap}.
     *
     * @see ImmutableSortedMap
     * @author Hayward Chan
     */
    @ElementTypesAreNonnullByDefault
    public abstract class ImmutableMap<K, V> implements Map<K, V>, Serializable {
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/ImmutableGraph.java

          Graph<N> graph) {
        // ImmutableMap.Builder maintains the order of the elements as inserted, so the map will have
        // whatever ordering the graph's nodes do, so ImmutableSortedMap is unnecessary even if the
        // input nodes are sorted.
        ImmutableMap.Builder<N, GraphConnections<N, Presence>> nodeConnections = ImmutableMap.builder();
        for (N node : graph.nodes()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

          ValueGraph<N, V> graph) {
        // ImmutableMap.Builder maintains the order of the elements as inserted, so the map will have
        // whatever ordering the graph's nodes do, so ImmutableSortedMap is unnecessary even if the
        // input nodes are sorted.
        ImmutableMap.Builder<N, GraphConnections<N, V>> nodeConnections = ImmutableMap.builder();
        for (N node : graph.nodes()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            return new ConcurrentSkipListMap<>(map);
          }
        },
        ImmutableSortedMapImpl {
          @Override
          public <K extends Comparable<K>, V> SortedMap<K, V> create(Map<K, V> map) {
            return ImmutableSortedMap.copyOf(map);
          }
        };
      }
    
      enum BiMapImpl implements MapsImplEnum {
        HashBiMapImpl {
          @Override
          public <K extends Comparable<K>, V> BiMap<K, V> create(Map<K, V> map) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Mar 04 04:06:35 GMT 2022
    - 12.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            return new ConcurrentSkipListMap<>(map);
          }
        },
        ImmutableSortedMapImpl {
          @Override
          public <K extends Comparable<K>, V> SortedMap<K, V> create(Map<K, V> map) {
            return ImmutableSortedMap.copyOf(map);
          }
        };
      }
    
      enum BiMapImpl implements MapsImplEnum {
        HashBiMapImpl {
          @Override
          public <K extends Comparable<K>, V> BiMap<K, V> create(Map<K, V> map) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Mar 04 04:06:35 GMT 2022
    - 12.3K bytes
    - Viewed (0)
Back to top