Class TypeHashMap<V>

java.lang.Object
java.util.AbstractMap<Type,V>
java.util.HashMap<Type,V>
java.util.LinkedHashMap<Type,V>
net.okapia.osid.torrefacto.collect.TypeHashMap<V>
Type Parameters:
V - the value type
All Implemented Interfaces:
Serializable, Cloneable, Map<Type,V>, SequencedMap<Type,V>

public class TypeHashMap<V> extends LinkedHashMap<Type,V>
A LinkedHashMap whose keys are hardened to org.osid.type.Type. It adds no behavior beyond fixing the key type; all map operations are inherited.
See Also:
  • Constructor Details

    • TypeHashMap

      public TypeHashMap(int initialCapacity, float loadFactor)
      Constructs an empty HashMap with the specified initial capacity and load factor.
      Parameters:
      initialCapacity - the initial capacity
      loadFactor - the load factor
      Throws:
      IllegalArgumentException - if the initial capacity is negative or the load factor is nonpositive
    • TypeHashMap

      public TypeHashMap(int initialCapacity)
      Constructs an empty HashMap with the specified initial capacity and the default load factor (0.75).
      Parameters:
      initialCapacity - the initial capacity.
      Throws:
      IllegalArgumentException - if the initial capacity is negative.
    • TypeHashMap

      public TypeHashMap()
      Constructs an empty HashMap with the default initial capacity (16) and the default load factor (0.75).