Modifier and Type | Method and Description |
---|---|
static ArrayInteger |
fromOrEmpty(int... items)
This method creates new array instance with a variable number of
int arguments. |
static ArrayInteger |
fromOrEmpty(List<Integer> items)
Creates a java script array of integers starting from list of integers.
|
static ArrayInteger |
fromOrNull(int... items)
This method creates new array instance with a variable number of
int arguments. |
static ArrayInteger |
fromOrNull(List<Integer> items)
Creates a java script array of integers starting from list of integers.
|
int |
get(int index)
Gets the value at a given index.
|
@JsOverlay public static ArrayInteger fromOrNull(int... items)
int
arguments.items
- integer items to create new arraynull
if argument is null
or length to 0.@JsOverlay public static ArrayInteger fromOrEmpty(int... items)
int
arguments.items
- integer items to create new arraynull
or length to 0@JsOverlay public static ArrayInteger fromOrNull(List<Integer> items)
items
- list of integers to load in the new java script array.null
if argument is null
or empty@JsOverlay public static ArrayInteger fromOrEmpty(List<Integer> items)
items
- list of integers to load in the new java script array.null
or empty@JsOverlay public int get(int index)
index
- the index to be retrieved