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

Method get

src/main/java/co/aikar/util/LoadingIntMap.java:46–56  ·  view source on GitHub ↗
(int key)

Source from the content-addressed store, hash-verified

44
45
46 @Override
47 public V get(int key) {
48 V res = super.get(key);
49 if (res == null) {
50 res = loader.apply(key);
51 if (res != null) {
52 put(key, res);
53 }
54 }
55 return res;
56 }
57
58 /**
59 * Due to java stuff, you will need to cast it to (Function) for some cases

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
applyMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected