public final class Dispatch
extends java.lang.Object
Constructor and Description |
---|
Dispatch() |
Dispatch(long creationTime) |
Dispatch(long creationTime,
org.json.JSONObject source)
Construct dispatch from
Map source. |
Dispatch(java.util.Map<java.lang.String,?> source)
Construct dispatch from
Map source. |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.String key) |
java.lang.Object |
get(java.lang.String key) |
java.lang.String[] |
getArray(java.lang.String key) |
long |
getCreationTime() |
java.lang.String |
getString(java.lang.String key) |
java.lang.String[] |
keys() |
void |
put(java.lang.String key,
java.lang.String value) |
void |
put(java.lang.String key,
java.lang.String[] value) |
void |
putAll(java.util.Map<java.lang.String,?> map) |
void |
putAllIfAbsent(java.util.Map<java.lang.String,?> map) |
void |
putIfAbsent(java.lang.String key,
java.lang.String value) |
void |
putIfAbsent(java.lang.String key,
java.lang.String[] value) |
int |
size() |
org.json.JSONObject |
toJsonObject() |
java.lang.String |
toJsonString() |
java.lang.String |
toSortedJsonString() |
java.lang.String |
toString() |
public Dispatch()
public Dispatch(long creationTime)
public Dispatch(long creationTime, org.json.JSONObject source)
Map
source. Values are coerced into Strings and
Arrays of Strings. null keys and values are not added.source
- instance or null.public Dispatch(java.util.Map<java.lang.String,?> source)
Map
source. Values are coerced into Strings and
Arrays of Strings. null keys and values are not added.source
- instance or null.public boolean containsKey(java.lang.String key)
public int size()
public void putAll(java.util.Map<java.lang.String,?> map)
map
- adds the contents, if null nothing happens.public void putAllIfAbsent(java.util.Map<java.lang.String,?> map)
map
- adds the contents for all the keys not already present, if null nothing happens.public void put(java.lang.String key, java.lang.String value)
public void put(java.lang.String key, java.lang.String[] value)
public void putIfAbsent(java.lang.String key, java.lang.String value)
public void putIfAbsent(java.lang.String key, java.lang.String[] value)
public java.lang.Object get(java.lang.String key)
public java.lang.String getString(java.lang.String key)
public java.lang.String[] getArray(java.lang.String key)
public org.json.JSONObject toJsonObject()
public java.lang.String toJsonString()
public java.lang.String toSortedJsonString()
public java.lang.String[] keys()
public java.lang.String toString()
toString
in class java.lang.Object
public long getCreationTime()