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

Method LoadingMap

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

Initializes an auto loading map using specified loader and backing map @param backingMap Map to wrap @param loader Loader

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

Source from the content-addressed store, hash-verified

57 * @param loader Loader
58 */
59 public LoadingMap(Map<K, V> backingMap, Function<K, V> loader) {
60 this.backingMap = backingMap;
61 this.loader = loader;
62 }
63
64 /**
65 * Creates a new LoadingMap with the specified map and loader

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected