Package | Description |
---|---|
twitter4j |
general package for Twitter4J
|
Modifier and Type | Method and Description |
---|---|
JSONObject |
JSONObject.accumulate(String name,
Object value)
Appends
value to the array already mapped to name . |
JSONObject |
JSONObject.append(String name,
Object value)
Appends values to the array mapped to
name . |
JSONObject |
HttpResponse.asJSONObject()
Returns the response body as twitter4j.JSONObject.
Disconnects the internal HttpURLConnection silently. |
JSONObject |
HttpParameter.getJsonObject() |
JSONObject |
JSONArray.getJSONObject(int index)
Returns the value at
index if it exists and is a JSONObject . |
JSONObject |
JSONObject.getJSONObject(String name)
Returns the value mapped by
name if it exists and is a JSONObject , or throws otherwise. |
JSONObject |
JSONArray.optJSONObject(int index)
Returns the value at
index if it exists and is a JSONObject . |
JSONObject |
JSONObject.optJSONObject(String name)
Returns the value mapped by
name if it exists and is a JSONObject , or null otherwise. |
JSONObject |
JSONObject.put(String name,
boolean value)
Maps
name to value , clobbering any existing name/value
mapping with the same name. |
JSONObject |
JSONObject.put(String name,
double value)
Maps
name to value , clobbering any existing name/value
mapping with the same name. |
JSONObject |
JSONObject.put(String name,
int value)
Maps
name to value , clobbering any existing name/value
mapping with the same name. |
JSONObject |
JSONObject.put(String name,
long value)
Maps
name to value , clobbering any existing name/value
mapping with the same name. |
JSONObject |
JSONObject.put(String name,
Object value)
Maps
name to value , clobbering any existing name/value
mapping with the same name. |
JSONObject |
JSONObject.putOpt(String name,
Object value)
Equivalent to
put(name, value) when both parameters are non-null;
does nothing otherwise. |
JSONObject |
JSONArray.toJSONObject(JSONArray names)
Returns a new object whose values are the values in this array, and whose
names are the values in
names . |
Modifier and Type | Method and Description |
---|---|
static JSONObjectType.Type |
JSONObjectType.determine(JSONObject json)
Determine the respective object type for a given JSONObject.
|
Constructor and Description |
---|
HttpParameter(JSONObject jsonObject) |
JSONObject(JSONObject copyFrom,
String[] names)
Creates a new
JSONObject by copying mappings for the listed names
from the given object. |
Copyright © 2018. All rights reserved.