Top Description Fields Constructors Methods
com.mysql.cj.xdevapi

public Class JsonArray

extends ArrayList<JsonValue>
implements JsonValue
Class Inheritance
All Implemented Interfaces
com.mysql.cj.xdevapi.JsonValue
Imports
java.util.ArrayList

Represents a JSON array.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public JsonArray

Returns:

this JsonArray
addValue
(JsonValue
value
val
)

Add value to this array.

public String
toFormattedString()

Overrides default com.mysql.cj.xdevapi.JsonValue.toFormattedString.

Get a human readable "pretty" JSON string.

public String
toString()

Overrides java.util.AbstractCollection.toString.

Returns a string representation of this collection.

Inherited from java.util.ArrayList:
addaddaddAlladdAlladdFirstaddLastclearclonecontainsensureCapacityequalsforEachgetgetFirstgetLasthashCodeindexOfisEmptyiteratorlastIndexOflistIteratorlistIteratorremoveremoveremoveAllremoveFirstremoveIfremoveLastremoveRangereplaceAllretainAllsetsizesortspliteratorsubListtoArraytoArraytrimToSize

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.ArrayList.serialVersionUID.

Constructor Detail

JsonArrayback to summary
public JsonArray()

Method Detail

addValueback to summary
public JsonArray addValue(JsonValue val)

Add value to this array.

Parameters
val:JsonValue

value

Returns:JsonArray

this JsonArray

toFormattedStringback to summary
public String toFormattedString()

Overrides default com.mysql.cj.xdevapi.JsonValue.toFormattedString.

Doc from com.mysql.cj.xdevapi.JsonValue.toFormattedString.

Get a human readable "pretty" JSON string.

Returns:String

human readable "pretty" JSON string

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.util.AbstractCollection.toString.

Doc from java.util.AbstractCollection.toString.

Returns a string representation of this collection. The string representation consists of a list of the collection's elements in the order they are returned by its iterator, enclosed in square brackets ("[]"). Adjacent elements are separated by the characters ", " (comma and space). Elements are converted to strings as by String#valueOf(Object).

Returns:String

a string representation of this collection

Annotations
@Override