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

Method getEnumConstants

output/java_guava/1.4.18/Enums.java:91–100  ·  view source on GitHub ↗
(Class<T> enumClass)

Source from the content-addressed store, hash-verified

89 }
90
91 @GwtIncompatible // java.lang.ref.WeakReference
92 static <T extends Enum<T>> Map<String, WeakReference<? extends Enum<?>>> getEnumConstants(Class<T> enumClass) {
93 synchronized (enumConstantCache) {
94 Map<String, WeakReference<? extends Enum<?>>> constants = enumConstantCache.get(enumClass);
95 if (constants == null) {
96 constants = populateCache(enumClass);
97 }
98 return constants;
99 }
100 }
101
102 /**
103 * Returns a converter that converts between strings and {@code enum} values of type

Callers 5

getBestComparatorMethod · 0.45
createNodesMethod · 0.45
EnumHashBiMapMethod · 0.45
readObjectMethod · 0.45
getBestValidatorMethod · 0.45

Calls 2

populateCacheMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected