MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / set

Method set

src/main/java/field/graphics/UniformBundle.java:34–36  ·  view source on GitHub ↗
(Dict.Prop<T> d, Supplier<T> s)

Source from the content-addressed store, hash-verified

32 return uniforms.get(new Dict.Prop<T>(d));
33 }
34
35 public <T> Uniform<T> set(Dict.Prop<T> d, Supplier<T> s) {
36 checkName(d.getName()); return uniforms.computeIfAbsent(d, (k) -> new Uniform<T>(d.getName(), s)).setValue(s);
37 }
38
39

Callers

nothing calls this directly

Calls 4

checkNameMethod · 0.95
computeIfAbsentMethod · 0.80
getNameMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected