MCPcopy Create free account
hub / github.com/antlr/codebuff / copyOfEnumMap

Method copyOfEnumMap

output/java_guava/1.4.16/ImmutableMap.java:384–390  ·  view source on GitHub ↗
(EnumMap<K, ? extends V> original)

Source from the content-addressed store, hash-verified

382 }
383
384 private static <K extends Enum<K>, V> ImmutableMap<K, V> copyOfEnumMap(EnumMap<K, ? extends V> original) {
385 EnumMap<K, V> copy = new EnumMap<K, V>(original);
386 for (Map.Entry<?, ?> entry : copy.entrySet()) {
387 checkEntryNotNull(entry.getKey(), entry.getValue());
388 }
389 return ImmutableEnumMap.asImmutable(copy);
390 }
391
392 static final Entry<?, ?>[] EMPTY_ENTRY_ARRAY = new Entry<?, ?>[0];
393

Callers 1

copyOfMethod · 0.95

Calls 5

asImmutableMethod · 0.95
entrySetMethod · 0.65
getKeyMethod · 0.65
getValueMethod · 0.65
checkEntryNotNullMethod · 0.45

Tested by

no test coverage detected