Class Any

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​java.lang.Object>

    public class Any
    extends java.util.HashMap<java.lang.String,​java.lang.Object>
    Any
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      Any()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Any atType​(java.lang.String atType)  
      boolean equals​(java.lang.Object o)
      Return true if this Any object is equal to o.
      java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      Return the additional (undeclared) properties.
      java.lang.Object getAdditionalProperty​(java.lang.String key)
      Return the additional (undeclared) property with the specified name.
      java.lang.String getAtType()
      Get atType
      int hashCode()  
      Any putAdditionalProperty​(java.lang.String key, java.lang.Object value)
      Set the additional (undeclared) property with the specified name and value.
      void setAtType​(java.lang.String atType)  
      java.lang.String toString()  
      java.lang.String toUrlQueryString()
      Convert the instance into URL query string.
      java.lang.String toUrlQueryString​(java.lang.String prefix)
      Convert the instance into URL query string.
      • Methods inherited from class java.util.HashMap

        clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • JSON_PROPERTY_AT_TYPE

        public static final java.lang.String JSON_PROPERTY_AT_TYPE
        See Also:
        Constant Field Values
    • Constructor Detail

      • Any

        public Any()
    • Method Detail

      • atType

        public Any atType​(java.lang.String atType)
      • getAtType

        @Nullable
        public java.lang.String getAtType()
        Get atType
        Returns:
        atType
      • setAtType

        public void setAtType​(java.lang.String atType)
      • putAdditionalProperty

        public Any putAdditionalProperty​(java.lang.String key,
                                         java.lang.Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
        Parameters:
        key - the name of the property
        value - the value of the property
        Returns:
        self reference
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Return the additional (undeclared) properties.
        Returns:
        the additional (undeclared) properties
      • getAdditionalProperty

        public java.lang.Object getAdditionalProperty​(java.lang.String key)
        Return the additional (undeclared) property with the specified name.
        Parameters:
        key - the name of the property
        Returns:
        the additional (undeclared) property with the specified name
      • equals

        public boolean equals​(java.lang.Object o)
        Return true if this Any object is equal to o.
        Specified by:
        equals in interface java.util.Map<java.lang.String,​java.lang.Object>
        Overrides:
        equals in class java.util.AbstractMap<java.lang.String,​java.lang.Object>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map<java.lang.String,​java.lang.Object>
        Overrides:
        hashCode in class java.util.AbstractMap<java.lang.String,​java.lang.Object>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.AbstractMap<java.lang.String,​java.lang.Object>
      • toUrlQueryString

        public java.lang.String toUrlQueryString()
        Convert the instance into URL query string.
        Returns:
        URL query string
      • toUrlQueryString

        public java.lang.String toUrlQueryString​(java.lang.String prefix)
        Convert the instance into URL query string.
        Parameters:
        prefix - prefix of the query string
        Returns:
        URL query string