Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for immutableEnumMap (0.08 sec)

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

          } else {
            other.map.forEach(this::put);
            return this;
          }
        }
    
        ImmutableMap<K, V> toImmutableMap() {
          return (map == null) ? ImmutableMap.<K, V>of() : ImmutableEnumMap.asImmutable(map);
        }
      }
    
      @GwtIncompatible
      static <T extends @Nullable Object, K extends Comparable<? super K>, V>
          Collector<T, ?, ImmutableRangeMap<K, V>> toImmutableRangeMap(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      public void testCopyOfEnumMap() {
        EnumMap<AnEnum, String> map = new EnumMap<>(AnEnum.class);
        map.put(AnEnum.B, "foo");
        map.put(AnEnum.C, "bar");
        assertTrue(ImmutableMap.copyOf(map) instanceof ImmutableEnumMap);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testViewSerialization() {
        Map<String, Integer> map = ImmutableMap.of("one", 1, "two", 2, "three", 3);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMap.java

        EnumMap<K, V> copy = new EnumMap<>((EnumMap<K, ? extends V>) original);
        for (Entry<K, V> entry : copy.entrySet()) {
          checkEntryNotNull(entry.getKey(), entry.getValue());
        }
        return ImmutableEnumMap.asImmutable(copy);
      }
    
      static final Entry<?, ?>[] EMPTY_ENTRY_ARRAY = new Entry<?, ?>[0];
    
      abstract static class IteratorBasedImmutableMap<K, V> extends ImmutableMap<K, V> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
Back to top