public class HashObjectStore extends java.lang.Object implements ObjectStore
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,java.lang.Object> |
store |
Constructor and Description |
---|
HashObjectStore() |
Modifier and Type | Method and Description |
---|---|
<T> ObjectStore |
add(java.lang.Class<T> type,
T instance) |
ObjectStore |
clear() |
<T> T |
get(java.lang.Class<T> type) |
private java.util.concurrent.ConcurrentHashMap<java.lang.Class<?>,java.lang.Object> store
public <T> ObjectStore add(java.lang.Class<T> type, T instance)
add
in interface ObjectStore
public <T> T get(java.lang.Class<T> type)
get
in interface ObjectStore
public ObjectStore clear()
clear
in interface ObjectStore