Class ExtMap

java.lang.Object
org.ovirt.engine.api.extensions.ExtMap
All Implemented Interfaces:
Serializable, Cloneable, ConcurrentMap<ExtKey,Object>, Map<ExtKey,Object>

public class ExtMap extends Object implements ConcurrentMap<ExtKey,Object>, Cloneable, Serializable
Type safe map. Keys are bundle of uuid and type, each value added is checked against key type.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • map

      private ConcurrentMap<ExtKey,Object> map
      Wrapped map. Wrapper and not inhertence per assumption of future exposure if interface changes.
  • Constructor Details

    • ExtMap

      public ExtMap(int initialCapacity, float loadFactor)
      Constructs an empty ExtMap 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.
    • ExtMap

      public ExtMap(int initialCapacity)
      Constructs an empty ExtMap 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 or the load factor is nonpositive.
    • ExtMap

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

      public ExtMap(Map<ExtKey,Object> m)
      Constructs a new ExtMap with the same mappings as the specified Map. The ExtMap is created with default load factor (0.75) and an initial capacity sufficient to hold the mappings in the specified Map.
      Parameters:
      m - the map whose mappings are to be placed in this map.
      Throws:
      NullPointerException - if the specified map is null.
  • Method Details