Class IdMultiHashMap<V>

java.lang.Object
net.okapia.osid.torrefacto.collect.MultiHashMap<Id,V>
net.okapia.osid.torrefacto.collect.IdMultiHashMap<V>
Type Parameters:
V - the value type
All Implemented Interfaces:
MultiMap<Id,V>

public class IdMultiHashMap<V> extends MultiHashMap<Id,V>
A MultiHashMap whose keys are hardened to org.osid.id.Id. It adds no behavior beyond fixing the key type; all map operations are inherited.
  • Constructor Details

    • IdMultiHashMap

      public IdMultiHashMap()
      Constructs an empty MultiHashMap with the default initial capacity (16) and the default load factor (0.75).
    • IdMultiHashMap

      public IdMultiHashMap(int initialCapacity)
      Constructs an empty MultiHashMap 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.
    • IdMultiHashMap

      public IdMultiHashMap(int initialCapacity, float loadFactor)
      Constructs an empty MultiHashMap 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