toggle menu
Airship Android SDK
androidJvm
switch theme
search in API
urbanairship-core
/
com.urbanairship.json
/
JsonList
Json
List
open
class
JsonList
:
Iterable
<
T
>
,
JsonSerializable
An immutable list of JsonValues.
Members
Constructors
Json
List
Link copied to clipboard
constructor
(
@
Nullable
list
:
List
<
JsonValue
>
)
Default Constructor.
Properties
EMPTY_LIST
Link copied to clipboard
@
NonNull
val
EMPTY_LIST
:
JsonList
Empty list.
list
Link copied to clipboard
@get:
NonNull
val
list
:
List
<
JsonValue
>
Functions
contains
Link copied to clipboard
open
fun
contains
(
@
NonNull
jsonValue
:
JsonValue
)
:
Boolean
Tests whether this
List
contains the specified JSON value.
equals
Link copied to clipboard
open
fun
equals
(
@
Nullable
object
:
Any
)
:
Boolean
get
Link copied to clipboard
@
NonNull
open
fun
get
(
location
:
Int
)
:
JsonValue
Returns the element at the specified location in this
List
.
hash
Code
Link copied to clipboard
open
fun
hashCode
(
)
:
Int
index
Of
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.
is
Empty
Link copied to clipboard
open
fun
isEmpty
(
)
:
Boolean
Returns whether this
List
contains no elements.
iterator
Link copied to clipboard
@
NonNull
open
fun
iterator
(
)
:
Iterator
<
JsonValue
>
Returns an iterator on the elements of this
List
.
last
Index
Of
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.
size
Link copied to clipboard
open
fun
size
(
)
:
Int
Returns the number of elements in this
List
.
to
Json
Value
Link copied to clipboard
@
NonNull
open
fun
toJsonValue
(
)
:
JsonValue
Returns the objects represented as a JsonValue.
to
String
Link copied to clipboard
@
NonNull
open
fun
toString
(
)
:
String
Returns the JsonList as a JSON encoded String.
Inherited functions
for
Each
Link copied to clipboard
open
fun
forEach
(
action
:
Consumer
<
in
T
>
)
spliterator
Link copied to clipboard
open
fun
spliterator
(
)
:
Spliterator
<
T
>