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

Method EnumHashBiMap

output/java_guava/1.4.16/EnumHashBiMap.java:79–84  ·  view source on GitHub ↗
(Class<K> keyType)

Source from the content-addressed store, hash-verified

77 }
78
79 private EnumHashBiMap(Class<K> keyType) {
80 super(
81 WellBehavedMap.wrap(new EnumMap<K, V>(keyType)),
82 Maps.<V, K>newHashMapWithExpectedSize(keyType.getEnumConstants().length));
83 this.keyType = keyType;
84 }
85
86 // Overriding these 3 methods to show that values may be null (but not keys)
87

Callers

nothing calls this directly

Calls 3

wrapMethod · 0.95
getEnumConstantsMethod · 0.45

Tested by

no test coverage detected