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

Method of

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

Creates a new LoadingMap with the specified map and loader @param backingMap Actual map being used. @param loader Loader to use @param Key Type of the Map @param Value Type of the Map @return Map

(Map<K, V> backingMap, Function<K, V> loader)

Source from the content-addressed store, hash-verified

71 * @return Map
72 */
73 public static <K, V> Map<K, V> of(Map<K, V> backingMap, Function<K, V> loader) {
74 return new LoadingMap<>(backingMap, loader);
75 }
76
77 /**
78 * Creates a LoadingMap with an auto instantiating loader.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected