- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for EnumMap (0.06 sec)
-
android/guava/src/com/google/common/collect/ImmutableEnumMap.java
import java.io.InvalidObjectException; import java.io.ObjectInputStream; import java.io.Serializable; import java.util.EnumMap; import javax.annotation.CheckForNull; /** * Implementation of {@link ImmutableMap} backed by a non-empty {@link java.util.EnumMap}. * * @author Louis Wasserman */ @GwtCompatible(serializable = true, emulated = true)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableEnumMap.java
import java.io.InvalidObjectException; import java.io.ObjectInputStream; import java.io.Serializable; import java.util.EnumMap; import java.util.Spliterator; import java.util.function.BiConsumer; import javax.annotation.CheckForNull; /** * Implementation of {@link ImmutableMap} backed by a non-empty {@link java.util.EnumMap}. * * @author Louis Wasserman */ @GwtCompatible(serializable = true, emulated = true)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java
} } public static class ImmutableMapCopyOfEnumMapGenerator extends TestEnumMapGenerator { @Override protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) { EnumMap<AnEnum, String> map = new EnumMap<>(AnEnum.class); for (Entry<AnEnum, String> entry : entries) { map.put(entry.getKey(), entry.getValue()); } return ImmutableMap.copyOf(map); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 8.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 17K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 21.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMap.java
} } private static <K extends Enum<K>, V> ImmutableMap<K, ? extends V> copyOfEnumMap( EnumMap<?, ? extends V> original) { @SuppressWarnings("unchecked") // the best we could do to make copyOf(Map) compile EnumMap<K, V> copy = new EnumMap<>((EnumMap<K, ? extends V>) original); for (Entry<K, V> entry : copy.entrySet()) { checkEntryNotNull(entry.getKey(), entry.getValue()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 44.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
assertEquals(intMap.hashCode(), map.entrySet().hashCode()); assertEquals(intMap.hashCode(), map.hashCode()); } 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
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
CollectionFeature.SERIALIZABLE_INCLUDING_VIEWS, CollectionFeature.KNOWN_ORDER, CollectionFeature.ALLOWS_NULL_QUERIES) .named("ImmutableMap.copyOf[EnumMap]") .createTestSuite()); suite.addTest( MapTestSuiteBuilder.using(new ImmutableMapValuesAsSingletonSetGenerator()) .withFeatures( CollectionSize.ANY,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 36.6K bytes - Viewed (0)