public static interface Json.TypedArray<T>
extends java.lang.Iterable<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Json.TypedArray.Util
Contains utility methods for creating typed arrays to supply as the default when fetching
optional typed arrays from your JSON model.
|
| Modifier and Type | Method and Description |
|---|---|
T |
get(int index)
Returns the value at the given index, or the default value for
T if there's a
value of a different type at the index. |
T |
get(int index,
T dflt)
Returns the value at the given index, or the specified default value if there's a value of a
different type at the index.
|
java.util.Iterator<T> |
iterator()
Returns an iterator over the values of the assumed type in this array.
|
int |
length()
Returns the number of values in this array.
|
int length()
T get(int index)
T if there's a
value of a different type at the index.java.lang.ArrayIndexOutOfBoundsException - if index < 0 or index >= lengthT get(int index, T dflt)
java.lang.ArrayIndexOutOfBoundsException - if index < 0 or index >= lengthCopyright © 2018. All Rights Reserved.