Interface WTValuedMap

All Superinterfaces:
Map, WTKeyedMap
All Known Implementing Classes:
WTValuedHashMap

public interface WTValuedMap extends WTKeyedMap
A WTKeyedMap in which the values are a WTCollection. This means that values() returns a WTCollection and that the value in put(key,value) calls follows the same type constraints as the key.

Supported API: true

Extendable: false
  • Method Details

    • getValueMask

      int getValueMask()
      Get the key mask for the WTCollection of values in this map.

      Supported API: true
      Returns:
      int
    • wtValues

      WTCollection wtValues()
      Convenience method that returns the values in this map as a WTCollection. The resulting collection should be the same one that is returned by a call to values().

      Supported API: true
      Returns:
      WTCollection
    • getPersistable

      Persistable getPersistable(Persistable key) throws WTException
      Get the value that maps to the given key as a Persistable. If the value is not inflated, then the map will inflate it. This may result in the inflation of all instances of the uninflated object's class.

      Supported API: true
      Parameters:
      key -
      Returns:
      The inflated Persistable value
      Throws:
      WTException
    • getPersistable

      Persistable getPersistable(QueryKey key) throws WTException
      Get the value that maps to the given key as a Persistable. If the value is not inflated, then the map will inflate it. This may result in the inflation of all instances of the uninflated object's class.

      Supported API: true
      Parameters:
      key -
      Returns:
      The inflated Persistable value
      Throws:
      WTException
    • getPersistable

      Persistable getPersistable(WTReference key) throws WTException
      Get the value that maps to the given key as a Persistable. If the value is not inflated, then the map will inflate it. This may result in the inflation of all instances of the uninflated object's class.

      Supported API: true
      Parameters:
      key -
      Returns:
      The inflated Persistable value
      Throws:
      WTException
    • getQueryKey

      QueryKey getQueryKey(Persistable key)
      Get the value that maps to the given key as a QueryKey. If the value is non-persisted, then returns null.

      Supported API: true
      Parameters:
      key -
      Returns:
      null or the key
    • getQueryKey

      QueryKey getQueryKey(QueryKey key)
      Get the value that maps to the given key as a QueryKey. If the value is non-persisted, then returns null.

      Supported API: true
      Parameters:
      key -
      Returns:
      null or the key
    • getQueryKey

      QueryKey getQueryKey(WTReference key)
      Get the value that maps to the given key as a QueryKey. If the value is non-persisted, then returns null.

      Supported API: true
      Parameters:
      key -
      Returns:
      null or the key
    • getReference

      WTReference getReference(Persistable key)
      Get the value that maps to the given key as a WTReference.

      Supported API: true
      Parameters:
      key -
      Returns:
      WTReference
    • getReference

      WTReference getReference(QueryKey key)
      Get the value that maps to the given key as a WTReference.

      Supported API: true
      Parameters:
      key -
      Returns:
      WTReference
    • getReference

      WTReference getReference(WTReference key)
      Get the value that maps to the given key as a WTReference.

      Supported API: true
      Parameters:
      key -
      Returns:
      WTReference