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, toNative
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static JsonArray create()
public final JsonValue get(int index)
JsonArray
public JsonArray getArray(int index)
JsonArray
public boolean getBoolean(int index)
JsonArray
getBoolean
in interface JsonArray
public double getNumber(int index)
JsonArray
public JsonObject getObject(int index)
JsonArray
public String getString(int index)
JsonArray
public int length()
JsonArray
public void remove(int index)
JsonArray
public void set(int index, JsonValue value)
JsonArray
public void set(int index, String string)
JsonArray
public void set(int index, double number)
JsonArray
Copyright © 2018. All rights reserved.