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

Method newHashMap

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

Initializes an auto loading map using a 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

183 * @return Map
184 */
185 public static <K, V> Map<K, V> newHashMap(Function<K, V> loader) {
186 return new LoadingMap<>(new HashMap<>(), loader);
187 }
188
189 /**
190 * Initializes an auto loading map using a HashMap

Callers 15

ToneEnum · 0.80
InstrumentEnum · 0.80
GameModeEnum · 0.80
TreeSpeciesEnum · 0.80
MaterialEnum · 0.80
SandstoneTypeEnum · 0.80
EffectEnum · 0.80
DifficultyEnum · 0.80
ChatColorEnum · 0.80
CoalTypeEnum · 0.80
ArtEnum · 0.80
WorldTypeEnum · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected