Represents JSON array.
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
class JsonStructureFacade
Members list
Value members
Abstract methods
Concatenates JSON array.
Concatenates JSON array.
Attributes
- Returns
-
new JSON array
Prepends value.
Prepends value.
Attributes
- Returns
-
new JSON array
Gets value.
Gets value.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.IndexOutOfBoundsException
if index is out of bounds
Removes value at given index.
Removes value at given index.
Value parameters
- index
-
array index
Attributes
- Returns
-
new JSON array
- Throws
-
java.lang.IndexOutOfBoundsException
if index is out of bounds
- Note
-
Subsequent values to index are shifted left.
Updates value at given index.
Updates value at given index.
Value parameters
- index
-
array index
- value
-
JSON value
Attributes
- Returns
-
new JSON array
- Throws
-
java.lang.IndexOutOfBoundsException
if index is out of bounds
Concrete methods
Gets value as JsonArray
.
Gets value as JsonArray
.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonArray
java.lang.IndexOutOfBoundsExceptionif index is out of bounds
Gets value as BigDecimal
.
Gets value as BigDecimal
.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonNumber
java.lang.IndexOutOfBoundsExceptionif index is out of bounds
Gets value as BigInt
.
Gets value as BigInt
.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.ArithmeticException
if value cannot be represented exactly
java.lang.ClassCastExceptionif not JsonNumber
java.lang.IndexOutOfBoundsExceptionif index is out of bounds
Gets value as Boolean
.
Gets value as Boolean
.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonBoolean
java.lang.IndexOutOfBoundsExceptionif index is out of bounds
Gets value as Double
.
Gets value as Double
.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonNumber
java.lang.IndexOutOfBoundsExceptionif index is out of bounds
Gets value as Float
.
Gets value as Float
.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonNumber
java.lang.IndexOutOfBoundsExceptionif index is out of bounds
Gets value as Int
.
Gets value as Int
.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.ArithmeticException
if not represented exactly
java.lang.ClassCastExceptionif not JsonNumber
java.lang.IndexOutOfBoundsExceptionif index is out of bounds
Gets value as Long
.
Gets value as Long
.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.ArithmeticException
if not represented exactly
java.lang.ClassCastExceptionif not JsonNumber
java.lang.IndexOutOfBoundsExceptionif index is out of bounds
Gets value as JsonObject
.
Gets value as JsonObject
.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonObject
java.lang.IndexOutOfBoundsExceptionif index is out of bounds
Gets value as String
.
Gets value as String
.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonString
java.lang.IndexOutOfBoundsExceptionif index is out of bounds
Tests for null.
Tests for null.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.IndexOutOfBoundsException
if index is out of bounds
Reads value.
Reads value.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.IndexOutOfBoundsException
if index is out of bounds
java.lang.NullPointerExceptionif value is null
Optionally reads value.
Optionally reads value.
Value parameters
- index
-
array index
Attributes
- Throws
-
java.lang.IndexOutOfBoundsException
if index is out of bounds
- Note
-
The value is not read if it is null.
Reads value or returns default value.
Reads value or returns default value.
Value parameters
- default
-
default value
- index
-
array index
Attributes
- Note
-
The value is not read if it is null.
Inherited methods
Converts value.
Tests for empty.
Tests for non-empty.
Gets size.