Package hec.data
Class InfoMap
java.lang.Object
hec.data.AbstractDataSet
hec.data.InfoMap
- All Implemented Interfaces:
Serializable
An object that holds a Map of AbstractDataSet objects.
This class is needed for use in the DBI transaction system as it
requires that objects are an instance of AbstractDataSet.
- See Also:
-
Field Summary
Fields inherited from class hec.data.AbstractDataSet
subFieldDelimiter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears all of the keys and values from this mapping.Returns the object mapped to the specified key.keys()
Returns the Set of keys in the mapping.put
(Serializable key, AbstractDataSet val) Adds a new AbstractDataSet mapping.int
size()
Returns the number of mapped objects.values()
Returns a Collection of the values in this mapping.Methods inherited from class hec.data.AbstractDataSet
sdfFULL
-
Constructor Details
-
InfoMap
public InfoMap()
-
-
Method Details
-
put
Adds a new AbstractDataSet mapping.- Parameters:
key
- - The key for the AbstractDataSetval
- - The AbstractDataSet- Returns:
-
get
Returns the object mapped to the specified key.- Parameters:
key
- - The key to the object in the Map.- Returns:
- - the value mapped to the key.
-
size
public int size()Returns the number of mapped objects. -
keys
Returns the Set of keys in the mapping. -
values
Returns a Collection of the values in this mapping. -
clear
public void clear()Clears all of the keys and values from this mapping.
-