Class BDMapImpl
java.lang.Object
jmt.framework.data.BDMapImpl
- All Implemented Interfaces:
BDMap
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key, int coordName) tells whether a key mapping is present in this BDMap along a specified coordReturns a row or a column contained into this BDMap, given the search key pointing to it and the coordname this key refers to.Returns an object contained into this BDMAp, given the two search keys pointing to it.booleanisEmpty()Tells whether this BDMap is empty.keySet(int coordName) returns keyset along a single dimension.static voidvoidPuts a map into this BDMap, e.g.voidPuts a value into this BDMap, given keys along the two coordinatesRemoves an entry from this BDMap, given the two search keys pointing to it.Removes an entry from this BDMAp, given the two search keys pointing to it.intsize(int coordName) returns size of this BDMap along specified coordinate.
-
Constructor Details
-
BDMapImpl
public BDMapImpl()
-
-
Method Details
-
keySet
-
containsKey
tells whether a key mapping is present in this BDMap along a specified coord- Specified by:
containsKeyin interfaceBDMap- Parameters:
key- : key to be searched.coordName- : name of coordinate along which search must be performed.- Returns:
- : true if mapping for specified key has been defined, false otherwise.
-
isEmpty
-
put
-
put
Puts a map into this BDMap, e.g. puts a row or a column into the table represented by this BDMap. If, for example, a map is to be added on the X coordinate, this hashmap should contain mapping for each entry along Y coordinate, otherwise new mapping (returning null value) are created. All of the mappings contained inside given map and not defined along Y coord will be deleted -
remove
-
remove
Removes an entry from this BDMap, given the two search keys pointing to it. -
get
Description copied from interface:BDMapReturns an object contained into this BDMAp, given the two search keys pointing to it. -
get
Description copied from interface:BDMapReturns a row or a column contained into this BDMap, given the search key pointing to it and the coordname this key refers to. -
size
public int size(int coordName) returns size of this BDMap along specified coordinate. For example, if x coordinate is specified, where x is the coordinate for cells in a row of table represented by this BDMap, total number of columns is returned. -
main
-