public abstract class WeakNested<K,V>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
WeakNested.Collection<K,U extends java.util.Collection<V>,V> |
static class |
WeakNested.List<K,V> |
static class |
WeakNested.Map<K,U,V> |
static class |
WeakNested.Set<K,V> |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.function.Supplier<V> |
factory |
protected java.util.WeakHashMap<K,V> |
internalMap |
| Constructor and Description |
|---|
WeakNested(java.util.function.Supplier<V> factory) |
| Modifier and Type | Method and Description |
|---|---|
protected V |
empty() |
V |
get(K key) |
protected V |
getOrCreate(K key,
V defaultValue) |
V |
remove(K key) |