PRIMARY_KEY - SECONDARY_KEY - ITEM - public class WeakHashMapMap<PRIMARY_KEY,SECONDARY_KEY,ITEM> extends WeakHashMap<PRIMARY_KEY,Map<SECONDARY_KEY,ITEM>>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
WeakHashMapMap() |
| Modifier and Type | Method and Description |
|---|---|
Map<SECONDARY_KEY,ITEM> |
get(Object primaryKey) |
ITEM |
get(PRIMARY_KEY primaryKey,
SECONDARY_KEY secondaryKey)
Returns the requested item under primary and secondary key.
|
ITEM |
put(PRIMARY_KEY primaryKey,
SECONDARY_KEY secondaryKey,
ITEM item)
Inserts item under primary and secondary_key.
|
Map<SECONDARY_KEY,ITEM> |
remove(Object primaryKey)
removes all items under primaryKey
|
ITEM |
remove2(PRIMARY_KEY primaryKey,
SECONDARY_KEY secondaryKey)
removes the item under primary and secondary key.
|
clear, containsKey, containsValue, entrySet, forEach, isEmpty, keySet, put, putAll, replaceAll, size, valuesclone, equals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replacepublic Map<SECONDARY_KEY,ITEM> get(Object primaryKey)
get in interface Map<PRIMARY_KEY,Map<SECONDARY_KEY,ITEM>>get in class WeakHashMap<PRIMARY_KEY,Map<SECONDARY_KEY,ITEM>>public ITEM get(PRIMARY_KEY primaryKey, SECONDARY_KEY secondaryKey)
primaryKey - weakly-referencedsecondaryKey - public ITEM put(PRIMARY_KEY primaryKey, SECONDARY_KEY secondaryKey, ITEM item)
primaryKey - weakly-referencedsecondaryKey - item - public ITEM remove2(PRIMARY_KEY primaryKey, SECONDARY_KEY secondaryKey)
primaryKey - secondaryKey - public Map<SECONDARY_KEY,ITEM> remove(Object primaryKey)
remove in interface Map<PRIMARY_KEY,Map<SECONDARY_KEY,ITEM>>remove in class WeakHashMap<PRIMARY_KEY,Map<SECONDARY_KEY,ITEM>>primaryKey - Copyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.