Class SingletonMap<K,V,E extends Exception>

java.lang.Object
nonapi.io.github.classgraph.concurrency.SingletonMap<K,V,E>
Type Parameters:
K - The key type.
V - The value type.
E - the element type

public abstract class SingletonMap<K,V,E extends Exception> extends Object
A map from keys to singleton instances. Allows you to create object instance singletons and add them to a ConcurrentMap on demand, based on a key value. Works the same as concurrentMap.computeIfAbsent(key, key -> newInstance(key)), except that it also works on JDK 7.