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