public class NameMgr<T> extends Object
Tthat can be used as keys.
register(java.lang.String, java.util.function.Function<java.lang.String, T>)creates an intern'ed
T; if the object with the same name has already been created, return the original. There is only ever one object for a given name.
T.== can be used to test of name match, though providing
.equals is preferred.
|Constructor and Description|
|Modifier and Type||Method and Description|
register, creating an object is necessary
Licensed under the Apache License, Version 2.0