
public final class JsJsonArray extends JsJsonValue implements JsonArray
| Modifier | Constructor and Description |
|---|---|
protected |
JsJsonArray() |
| Modifier and Type | Method and Description |
|---|---|
static JsonArray |
create() |
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.
|
asBoolean, asNumber, asString, getType, jsEquals, toJson, toNativecast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringpublic static JsonArray create()
public final JsonValue get(int index)
JsonArraypublic JsonArray getArray(int index)
JsonArraypublic boolean getBoolean(int index)
JsonArraygetBoolean in interface JsonArraypublic double getNumber(int index)
JsonArraypublic JsonObject getObject(int index)
JsonArraypublic String getString(int index)
JsonArraypublic int length()
JsonArraypublic void remove(int index)
JsonArraypublic void set(int index,
JsonValue value)
JsonArraypublic void set(int index,
String string)
JsonArraypublic void set(int index,
double number)
JsonArrayCopyright © 2016. All rights reserved.