public interface JsonArray extends JsonValue, java.util.List<JsonValue>
JsonValue,
JsonValueFactory| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Boolean value)
Wraps passed value with JsonBoolean and delegates the call to
List.add(Object) method. |
void |
add(int index,
java.lang.Boolean value)
Wraps passed value with JsonBoolean and delegates the call to
List.add(int, Object) method. |
void |
add(int index,
JsonValue value)
Delegates the call to
List.add(int, Object) method. |
void |
add(int index,
java.lang.Number value)
Wraps passed value with JsonNumber and delegates the call to
List.add(int, Object) method. |
void |
add(int index,
java.lang.String value)
Wraps passed value with JsonString and delegates the call to
List.add(int, Object) method. |
boolean |
add(JsonValue value)
Delegates the call to
List.add(Object) method. |
boolean |
add(java.lang.Number value)
Wraps passed value with JsonNumber and delegates the call to
List.add(Object) method. |
boolean |
add(java.lang.String value)
Wraps passed value with JsonString and delegates the call to
List.add(Object) method. |
boolean |
addNull()
Delegates the call to
List.add(Object) method. |
void |
addNull(int index)
Delegates the call to
List.add(int, Object) method. |
JsonArray |
clone()
Clones this JSON array.
|
boolean |
contains(java.lang.Boolean value)
Wraps passed value with JsonBoolean and delegates the call to
List.contains(Object) method. |
boolean |
contains(JsonValue value)
Delegates the call to
List.contains(Object) method. |
boolean |
contains(java.lang.Number value)
Wraps passed value with JsonNumber and delegates the call to
List.contains(Object) method. |
boolean |
contains(java.lang.String value)
Wraps passed value with JsonString and delegates the call to
List.contains(Object) method. |
boolean |
containsNull()
Delegates the call to
List.contains(Object) method. |
int |
indexOf(java.lang.Boolean value)
Wraps passed value with JsonBoolean and delegates the call to
List.indexOf(Object) method. |
int |
indexOf(JsonValue value)
Delegates the call to
List.indexOf(Object) method. |
int |
indexOf(java.lang.Number value)
Wraps passed value with JsonNumber and delegates the call to
List.indexOf(Object) method. |
int |
indexOf(java.lang.String value)
Wraps passed value with JsonString and delegates the call to
List.indexOf(Object) method. |
int |
indexOfNull()
Delegates the call to
List.indexOf(Object) method. |
int |
lastIndexOf(java.lang.Boolean value)
Wraps passed value with JsonBoolean and delegates the call to
List.lastIndexOf(Object) method. |
int |
lastIndexOf(JsonValue value)
Delegates the call to
List.lastIndexOf(Object) method. |
int |
lastIndexOf(java.lang.Number value)
Wraps passed value with JsonNumber and delegates the call to
List.lastIndexOf(Object) method. |
int |
lastIndexOf(java.lang.String value)
Wraps passed value with JsonString and delegates the call to
List.lastIndexOf(Object) method. |
int |
lastIndexOfNull()
Delegates the call to
List.lastIndexOf(Object) method. |
boolean |
remove(java.lang.Boolean value)
Wraps passed value with JsonBoolean and delegates the call to
List.remove(Object) method. |
boolean |
remove(JsonValue value)
Delegates the call to
List.remove(Object) method. |
boolean |
remove(java.lang.Number value)
Wraps passed value with JsonNumber and delegates the call to
List.remove(Object) method. |
boolean |
remove(java.lang.String value)
Wraps passed value with JsonString and delegates the call to
List.remove(Object) method. |
boolean |
removeNull()
Delegates the call to
List.remove(Object) method. |
JsonValue |
set(int index,
java.lang.Boolean value)
Wraps passed value with JsonBoolean and delegates the call to
List.set(int, Object) method. |
JsonValue |
set(int index,
JsonValue value)
Delegates the call to
List.set(int, Object) method. |
JsonValue |
set(int index,
java.lang.Number value)
Wraps passed value with JsonNumber and delegates the call to
List.set(int, Object) method. |
JsonValue |
set(int index,
java.lang.String value)
Wraps passed value with JsonString and delegates the call to
List.set(int, Object) method. |
JsonValue |
setNull(int index)
Delegates the call to
List.set(int, Object) method. |
JsonValue[] |
toArray()
Translates this JSON array to Java array.
|
void |
writeTo(JsonWriter output)
Serializes this JSON array to the writer.
|
void |
writeTo(java.io.OutputStream output)
Serializes this JSON array to the stream using
UTF-8 character set. |
void |
writeTo(java.io.OutputStream output,
java.nio.charset.Charset charset)
Serializes this JSON array to the writer using specified character set.
|
void |
writeTo(java.io.Writer output)
Serializes this JSON array to the writer.
|
boolean add(java.lang.String value)
List.add(Object) method.value - string to wrapboolean add(java.lang.Number value)
List.add(Object) method.value - number to wrapboolean add(java.lang.Boolean value)
List.add(Object) method.value - boolean to wrapboolean add(JsonValue value)
List.add(Object) method.boolean addNull()
List.add(Object) method.void add(int index,
java.lang.String value)
List.add(int, Object) method.index - index at which the specified JSON string is to be insertedvalue - string to wrapvoid add(int index,
java.lang.Number value)
List.add(int, Object) method.index - index at which the specified JSON number is to be insertedvalue - number to wrapvoid add(int index,
java.lang.Boolean value)
List.add(int, Object) method.index - index at which the specified JSON boolean is to be insertedvalue - boolean to wrapvoid add(int index,
JsonValue value)
List.add(int, Object) method.add in interface java.util.List<JsonValue>index - index at which the specified JSON value is to be insertedvalue - JSON valuevoid addNull(int index)
List.add(int, Object) method.index - index at which null value is to be insertedboolean contains(java.lang.String value)
List.contains(Object) method.value - string to wrapboolean contains(java.lang.Number value)
List.contains(Object) method.value - number to wrapboolean contains(java.lang.Boolean value)
List.contains(Object) method.value - boolean to wrapboolean contains(JsonValue value)
List.contains(Object) method.value - JSON valueboolean containsNull()
List.contains(Object) method.int indexOf(java.lang.String value)
List.indexOf(Object) method.value - string to wrapint indexOf(java.lang.Number value)
List.indexOf(Object) method.value - number to wrapint indexOf(java.lang.Boolean value)
List.indexOf(Object) method.value - boolean to wrapint indexOf(JsonValue value)
List.indexOf(Object) method.value - JSON valueint indexOfNull()
List.indexOf(Object) method.int lastIndexOf(java.lang.String value)
List.lastIndexOf(Object) method.value - string to wrapint lastIndexOf(java.lang.Number value)
List.lastIndexOf(Object) method.value - string to wrapint lastIndexOf(java.lang.Boolean value)
List.lastIndexOf(Object) method.value - string to wrapint lastIndexOf(JsonValue value)
List.lastIndexOf(Object) method.value - JSON valueint lastIndexOfNull()
List.lastIndexOf(Object) method.boolean remove(java.lang.String value)
List.remove(Object) method.value - string to wrapboolean remove(java.lang.Number value)
List.remove(Object) method.value - number to wrapboolean remove(java.lang.Boolean value)
List.remove(Object) method.value - boolean to wrapboolean remove(JsonValue value)
List.remove(Object) method.value - JSON valueboolean removeNull()
List.remove(Object) method.JsonValue set(int index, java.lang.String value)
List.set(int, Object) method.index - index of the JSON value to replacevalue - string to wrapJsonValue set(int index, java.lang.Number value)
List.set(int, Object) method.index - index of the JSON value to replacevalue - number to wrapJsonValue set(int index, java.lang.Boolean value)
List.set(int, Object) method.index - index of the JSON value to replacevalue - boolean to wrapJsonValue set(int index, JsonValue value)
List.set(int, Object) method.set in interface java.util.List<JsonValue>index - index of the JSON value to replacevalue - JSON valueJsonValue setNull(int index)
List.set(int, Object) method.index - index of the JSON value to replace with nullJsonValue[] toArray()
void writeTo(JsonWriter output) throws java.io.IOException, JsonException
output - to write tojava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedvoid writeTo(java.io.Writer output)
throws java.io.IOException,
JsonException
output - to write tojava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedvoid writeTo(java.io.OutputStream output)
throws java.io.IOException,
JsonException
UTF-8 character set.output - to write tojava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedvoid writeTo(java.io.OutputStream output,
java.nio.charset.Charset charset)
throws java.io.IOException,
JsonException
output - to write tocharset - character setjava.io.IOException - if some I/O error occursJsonException - if wrong JSON is detectedCopyright © 2017 FOSS Nova Software Foundation. All rights reserved.