I want to create an object which is singleton per a string. For example when I call myObject("string1") it always returns the same object but different from myObject("string2").
I want to create an object which is singleton per a string. For example
Share
try this