MCPcopy Create free account
hub / github.com/MTrop/DoomTools / setObject

Method setObject

src/main/java/net/mtrop/doom/tools/struct/Loader.java:276–283  ·  view source on GitHub ↗

Explicitly sets an object to use for a given name. The name is case-insensitive. @param name the name of the object. @param object the corresponding object. @return this loader.

(String name, T object)

Source from the content-addressed store, hash-verified

274 * @return this loader.
275 */
276 public Loader<T> setObject(String name, T object)
277 {
278 synchronized (nameMap)
279 {
280 nameMap.put(name, object);
281 }
282 return this;
283 }
284
285 /**
286 * Get or load an object by name.

Callers 1

getObjectMethod · 0.95

Calls 1

putMethod · 0.80

Tested by

no test coverage detected