java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.models.ext.MapValue
All Implemented Interfaces:
ComplexValue<MapValue>

public class MapValue extends Object implements ComplexValue<MapValue>
The complex value for an open type.
  • Constructor Details

    • MapValue

      public MapValue()
    • MapValue

      public MapValue(Map<String,Object> content)
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • getContent

      public Map<String,Object> getContent()
    • entrySet

      public Set<Map.Entry<String,Object>> entrySet()
    • get

      public Object get(String name)
    • containsKey

      public boolean containsKey(String name)
    • put

      public MapValue put(String name, Object value)
    • getProperty

      public <P> P getProperty(Property<P> property)
      Description copied from interface: ComplexValue
      Get the value of the given property.
      Specified by:
      getProperty in interface ComplexValue<MapValue>
      Type Parameters:
      P - The type of the property and value.
      Parameters:
      property - The property to get the value of.
      Returns:
      the value of the requested property.
    • setProperty

      public <P> MapValue setProperty(Property<P> property, P value)
      Description copied from interface: ComplexValue
      Set the given property to the given value.
      Specified by:
      setProperty in interface ComplexValue<MapValue>
      Type Parameters:
      P - The type of the property.
      Parameters:
      property - The property to set.
      value - The value to set the property to.
      Returns:
      this.
    • getProperty

      public Object getProperty(String name)
      Description copied from interface: ComplexValue
      Get the custom property with the given name. Only valid for ComplexTypes that are classed as openType, returns null for non-openTypes.
      Specified by:
      getProperty in interface ComplexValue<MapValue>
      Parameters:
      name - The name of the custom property to fetch.
      Returns:
      The value of the custom property.
    • setProperty

      public MapValue setProperty(String name, Object value)
      Description copied from interface: ComplexValue
      Set the custom property with the given name to the given value. Only valid for ComplexTypes that are classed as openType.
      Specified by:
      setProperty in interface ComplexValue<MapValue>
      Parameters:
      name - The name of the custom property to set.
      value - The value of the custom property to set.
      Returns:
      this.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object