Package hec.data

Class InfoMap

All Implemented Interfaces:
Serializable

public class InfoMap extends AbstractDataSet
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:
  • Constructor Details

    • InfoMap

      public InfoMap()
  • Method Details

    • put

      public Object put(Serializable key, AbstractDataSet val)
      Adds a new AbstractDataSet mapping.
      Parameters:
      key - - The key for the AbstractDataSet
      val - - The AbstractDataSet
      Returns:
    • get

      public Object get(Object key)
      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

      public Set keys()
      Returns the Set of keys in the mapping.
    • values

      public Collection values()
      Returns a Collection of the values in this mapping.
    • clear

      public void clear()
      Clears all of the keys and values from this mapping.