Class MapValue<K,​V>

  • Type Parameters:
    K - the key type
    V - the value type
    All Implemented Interfaces:
    Value<java.util.Map<K,​V>>

    public final class MapValue<K,​V>
    extends java.lang.Object
    implements Value<java.util.Map<K,​V>>
    A map value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Value<? extends java.util.Map<K,​V>> mapValue  
      private java.util.List<MapEntry<? extends Value<? extends K>,​? extends Value<? extends V>>> values  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapValue​(Value<? extends java.util.Map<K,​V>> mapValue, java.util.List<MapEntry<? extends Value<? extends K>,​? extends Value<? extends V>>> values)
      Construct a new instance.
      MapValue​(Value<? extends java.util.Map<K,​V>> mapValue, MapEntry<? extends Value<? extends K>,​? extends Value<? extends V>>... values)
      Construct a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<K,​V> getValue()
      Get the actual value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • values

        private final java.util.List<MapEntry<? extends Value<? extends K>,​? extends Value<? extends V>>> values
      • mapValue

        private final Value<? extends java.util.Map<K,​V>> mapValue
    • Constructor Detail

      • MapValue

        public MapValue​(Value<? extends java.util.Map<K,​V>> mapValue,
                        java.util.List<MapEntry<? extends Value<? extends K>,​? extends Value<? extends V>>> values)
        Construct a new instance.
        Parameters:
        mapValue - the map value to add values to
        values - the values to add
      • MapValue

        public MapValue​(Value<? extends java.util.Map<K,​V>> mapValue,
                        MapEntry<? extends Value<? extends K>,​? extends Value<? extends V>>... values)
        Construct a new instance.
        Parameters:
        mapValue - the map value to add values to
        values - the values to add
    • Method Detail

      • getValue

        public java.util.Map<K,​V> getValue()
                                          throws java.lang.IllegalStateException
        Get the actual value.
        Specified by:
        getValue in interface Value<K>
        Returns:
        the actual value
        Throws:
        java.lang.IllegalStateException - if the value is time-sensitive and the current state does not allow retrieval.