public interface JsonArray extends JsonValue
Modifier and Type | Method and Description |
---|---|
<T extends JsonValue> |
get(int index)
Return the ith element of the array.
|
JsonArray |
getArray(int index)
Return the ith element of the array (uncoerced) as a JsonArray.
|
boolean |
getBoolean(int index)
Return the ith element of the array (uncoerced) as a boolean.
|
double |
getNumber(int index)
Return the ith element of the array (uncoerced) as a number.
|
JsonObject |
getObject(int index)
Return the ith element of the array (uncoerced) as a JsonObject If the type is not an object,,
this can result in runtime errors.
|
String |
getString(int index)
Return the ith element of the array (uncoerced) as a String.
|
int |
length()
Length of the array.
|
void |
remove(int index)
Remove an element of the array at a particular index.
|
void |
set(int index,
boolean bool)
Set the value at index to be a boolean value.
|
void |
set(int index,
double number)
Set the value at index to be a number value.
|
void |
set(int index,
JsonValue value)
Set the value at index to be a given value.
|
void |
set(int index,
String string)
Set the value at index to be a String value.
|
<T extends JsonValue> T get(int index)
JsonArray getArray(int index)
boolean getBoolean(int index)
double getNumber(int index)
JsonObject getObject(int index)
String getString(int index)
int length()
void remove(int index)
void set(int index, JsonValue value)
void set(int index, String string)
void set(int index, double number)
void set(int index, boolean bool)
Copyright © 2016. All rights reserved.