MCPcopy Create free account
hub / github.com/Teneted/Tenet / newHashAutoMap

Method newHashAutoMap

src/main/java/co/aikar/util/LoadingMap.java:126–128  ·  view source on GitHub ↗

@see #newAutoMap new Auto initializing map using a HashMap. @param keyClass Class used for the K generic @param valueClass Class used for the V generic @param Key Type of the Map @param Value Type of the Map @return Map that auto instantiates on .get()

(final Class<? extends K> keyClass, final Class<? extends V> valueClass)

Source from the content-addressed store, hash-verified

124 * @return Map that auto instantiates on .get()
125 */
126 public static <K, V> Map<K, V> newHashAutoMap(final Class<? extends K> keyClass, final Class<? extends V> valueClass) {
127 return newAutoMap(new HashMap<>(), keyClass, valueClass);
128 }
129
130 /**
131 * @see #newAutoMap

Callers

nothing calls this directly

Calls 1

newAutoMapMethod · 0.95

Tested by

no test coverage detected