Java javax.json JsonArray fields, constructors, methods, implement or subclass

Example usage for Java javax.json JsonArray fields, constructors, methods, implement or subclass

Introduction

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

The text is from its open source code.

Method

booleancontainsAll(Collection c)
Returns true if this list contains all of the elements of the specified collection.
voidforEach(Consumer action)
Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception.
Eget(int index)
Returns the element at the specified position in this list.
booleangetBoolean(int index)
Returns the boolean value at the specified position.
intgetInt(int index)
A convenience method for getJsonNumber(index).intValue() .
JsonArraygetJsonArray(int index)
Returns the array value at the specified position in this array.
JsonNumbergetJsonNumber(int index)
Returns the number value at the specified position in this array.
JsonObjectgetJsonObject(int index)
Returns the object value at the specified position in this array.
StringgetString(int index, String defaultValue)
Returns the String value of JsonString at the specified position in this JSON array values.
StringgetString(int index)
A convenience method for getJsonString(index).getString() .
ListgetValuesAs(Class clazz)
Returns a list view of the specified type for the array.
ListgetValuesAs(Function func)
Returns a list view for the array.
booleanisEmpty()
Returns true if this list contains no elements.
ListIteratorlistIterator()
Returns a list iterator over the elements in this list (in proper sequence).
intsize()
Returns the number of elements in this list.
StringtoString()
Returns JSON text for this JSON value.