MCPcopy Create free account
hub / github.com/PaperMC/Paper / newHashMap

Method newHashMap

paper-api/src/main/java/co/aikar/util/LoadingMap.java:196–199  ·  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

(@NotNull Function<K, V> loader)

Source from the content-addressed store, hash-verified

194 * @return Map
195 */
196 @NotNull
197 public static <K, V> Map<K, V> newHashMap(@NotNull Function<K, V> loader) {
198 return new LoadingMap<>(new HashMap<>(), loader);
199 }
200
201 /**
202 * Initializes an auto loading map using a HashMap

Callers 15

TimingHistoryClass · 0.95
applyMethod · 0.95
ToneEnum · 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
WorldTypeEnum · 0.80

Calls

no outgoing calls

Tested by 1

verifyMappingMethod · 0.64