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

Method newIdentityHashMap

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

Initializes an auto loading map using an Identity HashMap @param loader Loader to use @param Key Type of the Map @param Value Type of the Map @return Map

(Function<K, V> loader)

Source from the content-addressed store, hash-verified

221 * @return Map
222 */
223 public static <K, V> Map<K, V> newIdentityHashMap(Function<K, V> loader) {
224 return new LoadingMap<>(new IdentityHashMap<>(), loader);
225 }
226
227 /**
228 * Initializes an auto loading map using an Identity HashMap

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected