PRIMARY_KEY - SECONDARY_KEY - TERTIARY_KEY - QUATERNARY_KEY - ITEM - public class WeakHashQuadMap<PRIMARY_KEY,SECONDARY_KEY,TERTIARY_KEY,QUATERNARY_KEY,ITEM> extends WeakHashMap<PRIMARY_KEY,Map<SECONDARY_KEY,Map<TERTIARY_KEY,Map<QUATERNARY_KEY,ITEM>>>>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
WeakHashQuadMap() |
WeakHashQuadMap(int primaryCapacity,
int secondaryCapacity,
int tertiaryCapacity,
int quaternaryCapacity) |
| Modifier and Type | Method and Description |
|---|---|
Map<SECONDARY_KEY,Map<TERTIARY_KEY,Map<QUATERNARY_KEY,ITEM>>> |
get(Object key) |
Map<TERTIARY_KEY,Map<QUATERNARY_KEY,ITEM>> |
get(PRIMARY_KEY primaryKey,
SECONDARY_KEY secondaryKey)
If the requested secondLevel map does not exist an empty one is created, inserted
according to the primaryKey and returned.
|
Map<QUATERNARY_KEY,ITEM> |
get(PRIMARY_KEY primaryKey,
SECONDARY_KEY secondaryKey,
TERTIARY_KEY tertiaryKey)
If the requested level 3 map does not exist
an empty one is created, inserted and returned.
|
ITEM |
get(PRIMARY_KEY primaryKey,
SECONDARY_KEY secondaryKey,
TERTIARY_KEY tertiaryKey,
QUATERNARY_KEY quaternaryKey)
Returns null if the mapping is not present.
|
ITEM |
put(PRIMARY_KEY primaryKey,
SECONDARY_KEY secondaryKey,
TERTIARY_KEY tertiaryKey,
QUATERNARY_KEY quaternaryKey,
ITEM item)
Returns the inserted item.
|
Map<SECONDARY_KEY,Map<TERTIARY_KEY,Map<QUATERNARY_KEY,ITEM>>> |
remove(Object key) |
Map<TERTIARY_KEY,Map<QUATERNARY_KEY,ITEM>> |
remove(PRIMARY_KEY primaryKey,
SECONDARY_KEY secondaryKey) |
Map<QUATERNARY_KEY,ITEM> |
remove(PRIMARY_KEY primaryKey,
SECONDARY_KEY secondaryKey,
TERTIARY_KEY tertiaryKey) |
ITEM |
remove(PRIMARY_KEY primaryKey,
SECONDARY_KEY secondaryKey,
TERTIARY_KEY tertiaryKey,
QUATERNARY_KEY quaternaryKey) |
clear, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, size, valuesclone, equals, hashCode, toStringpublic WeakHashQuadMap()
public WeakHashQuadMap(int primaryCapacity,
int secondaryCapacity,
int tertiaryCapacity,
int quaternaryCapacity)
public Map<SECONDARY_KEY,Map<TERTIARY_KEY,Map<QUATERNARY_KEY,ITEM>>> get(Object key)
get in interface Map<PRIMARY_KEY,Map<SECONDARY_KEY,Map<TERTIARY_KEY,Map<QUATERNARY_KEY,ITEM>>>>get in class WeakHashMap<PRIMARY_KEY,Map<SECONDARY_KEY,Map<TERTIARY_KEY,Map<QUATERNARY_KEY,ITEM>>>>public Map<TERTIARY_KEY,Map<QUATERNARY_KEY,ITEM>> get(PRIMARY_KEY primaryKey, SECONDARY_KEY secondaryKey)
primaryKey - secondaryKey - public Map<QUATERNARY_KEY,ITEM> get(PRIMARY_KEY primaryKey, SECONDARY_KEY secondaryKey, TERTIARY_KEY tertiaryKey)
primaryKey - secondaryKey - tertiaryKey - public ITEM get(PRIMARY_KEY primaryKey, SECONDARY_KEY secondaryKey, TERTIARY_KEY tertiaryKey, QUATERNARY_KEY quaternaryKey)
primaryKey - secondaryKey - tertiaryKey - quaternaryKey - public ITEM put(PRIMARY_KEY primaryKey, SECONDARY_KEY secondaryKey, TERTIARY_KEY tertiaryKey, QUATERNARY_KEY quaternaryKey, ITEM item)
primaryKey - secondaryKey - tertiaryKey - quaternaryKey - item - public Map<SECONDARY_KEY,Map<TERTIARY_KEY,Map<QUATERNARY_KEY,ITEM>>> remove(Object key)
remove in interface Map<PRIMARY_KEY,Map<SECONDARY_KEY,Map<TERTIARY_KEY,Map<QUATERNARY_KEY,ITEM>>>>remove in class WeakHashMap<PRIMARY_KEY,Map<SECONDARY_KEY,Map<TERTIARY_KEY,Map<QUATERNARY_KEY,ITEM>>>>public Map<TERTIARY_KEY,Map<QUATERNARY_KEY,ITEM>> remove(PRIMARY_KEY primaryKey, SECONDARY_KEY secondaryKey)
public Map<QUATERNARY_KEY,ITEM> remove(PRIMARY_KEY primaryKey, SECONDARY_KEY secondaryKey, TERTIARY_KEY tertiaryKey)
public ITEM remove(PRIMARY_KEY primaryKey, SECONDARY_KEY secondaryKey, TERTIARY_KEY tertiaryKey, QUATERNARY_KEY quaternaryKey)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.