Class SuperMap<R, T extends GObject>
java.lang.Object
com.yetnt.utils.tuple.Pair<HashMultiMap<R,T>, HashMap<R,T>>
com.j3d.storage.files.protocol.proj.SuperMap<R,T>
- Type Parameters:
R- The key type used to identify values in both maps. This is abstracted sincePF3uses strings, butPF4uses the actualUUIDvalueT- The type ofGObjectstored in the maps.
- Direct Known Subclasses:
PF3.SuperMap, PF4.SuperMap
A utility class that extends
Pair to store two maps related to some GObject.
It holds a HashMultiMap to map parent thing IDs to a list of geometric objects,
and a HashMap to map individual geometric object IDs to the objects themselves.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a list of geometric objects associated with a specific parent thing ID.getIdMap()Returns theHashMapthat maps geometric object IDs to geometric objects.Returns theHashMultiMapthat maps parent thing IDs to geometric objects.
-
Constructor Details
-
SuperMap
Constructs a newSuperMapwith the given parent map and ID map.- Parameters:
thingParentMap- AHashMultiMapmapping parent thing IDs to geometric objects.idMap- AHashMapmapping geometric object IDs to geometric objects.
-
-
Method Details
-
getThingParentMap
Returns theHashMultiMapthat maps parent thing IDs to geometric objects.- Returns:
- The parent thing map.
-
getIdMap
-
fromThing
-