Class JSONMap

All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class JSONMap extends HashMap<String,Object>
Represents a map which can be serialized to JSON and deserialized back to this form, assuming all of the values it stores are serializable
See Also:
  • Field Details

  • Constructor Details

    • JSONMap

      public JSONMap()
  • Method Details

    • getInt

      public Integer getInt(String key)
    • getBoolean

      public Boolean getBoolean(String key)
    • getDouble

      public Double getDouble(String key)
    • getLong

      public Long getLong(String key)
    • getList

      public JSONList getList(String key)
    • getMap

      public JSONMap getMap(String key)
    • getString

      public String getString(String key)
    • toString

      public String toString()
      Overrides:
      toString in class AbstractMap<String,Object>
      Returns:
      A JSON string representing this JSONMap
    • getParent

      public redempt.redlib.json.JSONStorage getParent()
    • setParent

      public void setParent(redempt.redlib.json.JSONStorage obj)
    • add

      public void add(String key, Object value)
    • getTempKey

      public String getTempKey()
    • setTempKey

      public void setTempKey(String value)