Class ConstMap<K,V>

java.lang.Object
jmt.framework.data.ConstMap<K,V>

public abstract class ConstMap<K,V> extends Object

Name: ConstMap

Description: A data structure suitable to create constant maps. Its values cannot be changed.

Date: 09/ott/2008 Time: 18:57:49

Version:
1.0
Author:
Bertoli Marco
  • Constructor Details

    • ConstMap

      public ConstMap()
  • Method Details

    • fill

      protected abstract void fill()
      Fills this constant map with values. Call put method to fill.
      See Also:
    • put

      protected void put(K key, V value)
      Puts a value in this map. May be called only from the fill method.
      Parameters:
      key - the key for the value
      value - the value
    • get

      public V get(Object key)
      Returns a value in this map.
      Parameters:
      key - the key for the value
      Returns:
      the value
    • keySet

      public Set<K> keySet()
      Returns the key set of this map.
      Returns:
      the key set