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 |
remove(PRIMARY_KEY primaryKey,
SECONDARY_KEY secondaryKey)
removes the item under primary and secondary key.
|
clear, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, size, values
clone, equals, hashCode, toString
public 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 remove(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 © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.