public final class ArrayListHelper extends Object
Modifier and Type | Method and Description |
---|---|
static ArrayDoubleList |
list(ArrayDouble values)
Creates a array list of doubles by a java script array of doubles.
|
static ArrayImageList |
list(ArrayImage values)
Creates a array list of images by a java script array of images.
|
static ArrayIntegerList |
list(ArrayInteger values)
Creates a array list of integers by a java script array of integers.
|
static ArrayObjectList |
list(ArrayObject values)
Creates a array list of generic java script objects by a java script array.
|
static <E extends NativeObjectContainer> |
list(ArrayObject array,
NativeObjectContainerFactory<E> factory)
Creates a array list of java script native object container by a java script array and a factory.
|
static ArrayStringList |
list(ArrayString values)
Creates a array list of strings by a java script array of strings.
|
static <E extends Key> |
list(Class<E> clazz,
ArrayString array)
Creates a array list of enumeration values by an java script array of strings.
|
static <E extends Key> |
list(Class<E> clazz,
E[] values)
Creates a array list of enumeration values (instance of
Key ). |
static ArrayStringList |
list(IsColor... values)
Creates a array list of strings by an array of colors (instance of
IsColor ). |
static List<Double> |
unmodifiableList(ArrayDouble values)
Creates an unmodifiable array list of doubles by a java script array of doubles.
|
static List<ImageElement> |
unmodifiableList(ArrayImage values)
Creates a array list of images by a java script array of images.
|
static List<Integer> |
unmodifiableList(ArrayInteger values)
Creates an unmodifiable array list of integers by a java script array of integers.
|
static List<NativeObject> |
unmodifiableList(ArrayObject values)
Creates an unmodifiable array list of generic java script objects by a java script array.
|
static <E extends NativeObjectContainer> |
unmodifiableList(ArrayObject array,
NativeObjectContainerFactory<E> factory)
Creates an unmodifiable array list of java script native object container by a java script array and a factory.
|
static List<String> |
unmodifiableList(ArrayString values)
Creates a array list of strings by a java script array of strings.
|
static <E extends Key> |
unmodifiableList(Class<E> clazz,
ArrayString array)
Creates an unmodifiable array list of enumeration values by an java script array of strings.
|
static <E extends Key> |
unmodifiableList(Class<E> clazz,
E[] values)
Creates an unmodifiable array list of enumeration values (instance of
Key ). |
public static ArrayDoubleList list(ArrayDouble values)
values
- array of elements to load when the list is creating.null
if the array is null.public static ArrayIntegerList list(ArrayInteger values)
values
- array of elements to load when the list is creating.null
if the array is null.public static ArrayStringList list(ArrayString values)
values
- array of elements to load when the list is creating.null
if the array is null.public static ArrayImageList list(ArrayImage values)
values
- array of elements to load when the list is creating.null
if the array is null.public static ArrayStringList list(IsColor... values)
IsColor
).values
- array of elements to load when the list is creating.null
if the array is null.public static <E extends Key> ArrayEnumList<E> list(Class<E> clazz, E[] values)
Key
).E
- type of keyclazz
- enumeration class with all possible values of enumerationvalues
- array of elements to load when the list is creating.null
if the array is null.public static <E extends Key> ArrayEnumList<E> list(Class<E> clazz, ArrayString array)
E
- type of keyclazz
- enumeration class with all possible values of enumerationarray
- array of strings to load when the list is creating.null
if the array is null.public static ArrayObjectList list(ArrayObject values)
values
- array of elements to load when the list is creating.null
if the array is null.public static <E extends NativeObjectContainer> ArrayObjectContainerList<E> list(ArrayObject array, NativeObjectContainerFactory<E> factory)
E
- type of native object containerarray
- array of elements to load when the list is creating.factory
- factory implementation to create containers by a single native object of the array.null
if the array is null.public static List<Double> unmodifiableList(ArrayDouble values)
values
- array of elements to load when the list is creating.null
if the array is null.public static List<Integer> unmodifiableList(ArrayInteger values)
values
- array of elements to load when the list is creating.null
if the array is null.public static List<String> unmodifiableList(ArrayString values)
values
- array of elements to load when the list is creating.null
if the array is null.public static List<ImageElement> unmodifiableList(ArrayImage values)
values
- array of elements to load when the list is creating.null
if the array is null.public static <E extends Key> List<E> unmodifiableList(Class<E> clazz, E[] values)
Key
).E
- type of keyclazz
- enumeration class with all possible values of enumerationvalues
- array of elements to load when the list is creating.null
if the array is null.public static <E extends Key> List<E> unmodifiableList(Class<E> clazz, ArrayString array)
E
- type of keyclazz
- enumeration class with all possible values of enumerationarray
- array of strings to load when the list is creating.null
if the array is null.public static List<NativeObject> unmodifiableList(ArrayObject values)
values
- array of elements to load when the list is creating.null
if the array is null.public static <E extends NativeObjectContainer> List<E> unmodifiableList(ArrayObject array, NativeObjectContainerFactory<E> factory)
E
- type of native object containerarray
- array of elements to load when the list is creating.factory
- factory implementation to create containers by a single native object of the array.null
if the array is null.