JsonList

An immutable list of JsonValues.

Constructors

Link copied to clipboard
constructor(@Nullable list: List<JsonValue>)
Default Constructor.

Properties

Link copied to clipboard
Empty list.
Link copied to clipboard

Functions

Link copied to clipboard
open fun contains(@NonNull jsonValue: JsonValue): Boolean
Tests whether this List contains the specified JSON value.
Link copied to clipboard
open fun equals(@Nullable object: Any): Boolean
Link copied to clipboard
open fun get(location: Int): JsonValue
Returns the element at the specified location in this List.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun indexOf(@NonNull jsonValue: JsonValue): Int
Searches this List for the specified object and returns the index of the first occurrence.
Link copied to clipboard
open fun isEmpty(): Boolean
Returns whether this List contains no elements.
Link copied to clipboard
Returns an iterator on the elements of this List.
Link copied to clipboard
open fun lastIndexOf(@NonNull jsonValue: JsonValue): Int
Searches this List for the specified object and returns the index of the first occurrence.
Link copied to clipboard
open fun size(): Int
Returns the number of elements in this List.
Link copied to clipboard
Returns the objects represented as a JsonValue.
Link copied to clipboard
open fun toString(): String
Returns the JsonList as a JSON encoded String.

Inherited functions

Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard