Class WTValuedHashMap

All Implemented Interfaces:
Externalizable, Serializable, Cloneable, Map, WTKeyedMap, WTValuedMap, ResultProcessor, Evolvable

public class WTValuedHashMap extends WTKeyedHashMap implements WTValuedMap, Evolvable
The key mask for the values collection can be specified in the constructor. If it is not specified, then the values use the same key mask as the keys.

Note: this class is Evolvable. You probably don't want to take advantage of this, though, because what you've really got is an association and you should just accept that, model it, and let the system handle data integrity for you. But, if you ignore this advice, be aware that only the references themselves (and not their persistables) will be blobbed (unless the object hasn't been persisted, in which case it'll attempt to blob the entire persistable and fail (unless the persistable itself is Evolvable)) and that nobody's guaranteeing the objects being referred to will still be around when you later de-blob the collection and attempt to inflate the references.

Supported API: true

Extendable: false

See Also:
  • Constructor Details

    • WTValuedHashMap

      public WTValuedHashMap()


      Supported API: true
    • WTValuedHashMap

      public WTValuedHashMap(int initial_capacity)


      Supported API: true
      Parameters:
      initial_capacity -
    • WTValuedHashMap

      public WTValuedHashMap(int initial_capacity, int key_mask)


      Supported API: true
      Parameters:
      initial_capacity -
      key_mask -
    • WTValuedHashMap

      public WTValuedHashMap(int initial_capacity, int key_mask, int value_mask)


      Supported API: true
      Parameters:
      initial_capacity -
      key_mask -
      value_mask -
    • WTValuedHashMap

      public WTValuedHashMap(Map m)


      Supported API: true
      Parameters:
      m -
    • WTValuedHashMap

      public WTValuedHashMap(Map m, int key_mask)


      Supported API: true
      Parameters:
      m -
      key_mask -
    • WTValuedHashMap

      public WTValuedHashMap(Map m, int key_mask, int value_mask)


      Supported API: true
      Parameters:
      m -
      key_mask -
      value_mask -