Java io.vertx.core.json JsonArray fields, constructors, methods, implement or subclass

Example usage for Java io.vertx.core.json JsonArray fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.vertx.core.json JsonArray.

The text is from its open source code.

Constructor

JsonArray()
Create an empty instance
JsonArray(String json)
Create an instance from a String of JSON, this string must be a valid array otherwise an exception will be thrown.
JsonArray(List list)
Create an instance from a List.
JsonArray(Buffer buf)
Create an instance from a Buffer of JSON.

Method

JsonArrayadd(Object value)
Add an Object to the JSON array.
JsonArrayaddAll(JsonArray array)
Appends all of the elements in the specified array to the end of this JSON array.
JsonArrayaddNull()
Add a null value to the JSON array.
JsonArrayclear()
Remove all entries from the JSON array
booleancontains(Object value)
Does the JSON array contain the specified value?
JsonArraycopy()
Make a copy of the JSON array
Stringencode()
Encode the JSON array to a string
StringencodePrettily()
Encode the JSON array prettily as a string
BooleangetBoolean(int pos)
Get the Boolean at position pos in the array,
DoublegetDouble(int pos)
Get the Double at position pos in the array,
IntegergetInteger(int pos)
Get the Integer at position pos in the array,
JsonArraygetJsonArray(int pos)
Get the JsonArray at position pos in the array.
JsonObjectgetJsonObject(int pos)
Get the JsonObject at position pos in the array.
ListgetList()
Get the unerlying List
LonggetLong(int pos)
Get the Long at position pos in the array,
StringgetString(int pos)
Get the String at position pos in the array,
ObjectgetValue(int pos)
Get the value with the specified key, as an Object with types respecting the limitations of JSON.
booleanisEmpty()
Are there zero items in this JSON array?
Iteratoriterator()
Get an Iterator over the values in the JSON array
booleanremove(Object value)
Remove the specified value from the JSON array.
Objectremove(int pos)
Remove the value at the specified position in the JSON array.
intsize()
Get the number of values in this JSON array
Streamstream()
Get a Stream over the entries in the JSON array
StringtoString()