public final class ArrayListHelper extends Object
Modifier and Type | Method and Description |
---|---|
static <E extends Key> |
keys(ArrayString array,
KeyFactory<E> factory)
Creates a array list of
Key values by an java script array of strings. |
static ArrayCanvasList |
list(ArrayCanvas values)
Creates a array list of canvas by a java script array of canvas.
|
static ArrayDoubleList |
list(ArrayDouble values)
Creates a array list of doubles by a java script array of doubles.
|
static <E extends NativeArrayContainer<ArrayDouble>> |
list(ArrayDoubleArray array,
NativeArrayContainerFactory<ArrayDouble,E> factory)
Creates a array list of java script native double array container by a java script array and a factory.
|
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(E[] enumValues,
ArrayString array)
Creates a array list of enumeration values by an java script array of strings.
|
static <E extends Key> |
list(E[] enumValues,
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 <E extends Key> |
unmodifiableKeys(ArrayString array,
KeyFactory<E> factory)
Creates a unmodifiable array list of
Key values by an java script array of strings. |
static List<Canvas> |
unmodifiableList(ArrayCanvas values)
Creates a array list of canvas by a java script array of canvas.
|
static List<Double> |
unmodifiableList(ArrayDouble values)
Creates an unmodifiable array list of doubles by a java script array of doubles.
|
static <E extends NativeArrayContainer<ArrayDouble>> |
unmodifiableList(ArrayDoubleArray array,
NativeArrayContainerFactory<ArrayDouble,E> factory)
Creates an unmodifiable array list of java script native double array container by a java script array and a factory.
|
static List<Img> |
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(E[] enumValues,
ArrayString array)
Creates an unmodifiable array list of enumeration values by an java script array of strings.
|
static <E extends Key> |
unmodifiableList(E[] enumValues,
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.public static ArrayIntegerList list(ArrayInteger values)
values
- array of elements to load when the list is creating.public static ArrayStringList list(ArrayString values)
values
- array of elements to load when the list is creating.public static ArrayImageList list(ArrayImage values)
values
- array of elements to load when the list is creating.public static ArrayCanvasList list(ArrayCanvas values)
values
- array of elements to load when the list is creating.public static ArrayStringList list(IsColor... values)
IsColor
).values
- array of elements to load when the list is creating.public static <E extends Key> ArrayEnumList<E> list(E[] enumValues, E[] values)
Key
).E
- type of keyenumValues
- all possible values of an enumerationvalues
- array of elements to load when the list is creating.public static <E extends Key> ArrayEnumList<E> list(E[] enumValues, ArrayString array)
E
- type of keyenumValues
- all possible values of an enumerationarray
- array of strings to load when the list is creating.public static <E extends Key> ArrayKeyList<E> keys(ArrayString array, KeyFactory<E> factory)
Key
values by an java script array of strings.E
- type of keyarray
- array of strings to load when the list is creating.factory
- factory implementation to create keys by a single native object of the array.Key
.public static ArrayObjectList list(ArrayObject values)
values
- array of elements to load when the list is creating.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.public static <E extends NativeArrayContainer<ArrayDouble>> ArrayDoubleArrayList<E> list(ArrayDoubleArray array, NativeArrayContainerFactory<ArrayDouble,E> factory)
E
- type of native double array containerarray
- array of elements to load when the list is creating.factory
- factory implementation to create containers by a single native array of the arrays.public static List<Double> unmodifiableList(ArrayDouble values)
values
- array of elements to load when the list is creating.public static List<Integer> unmodifiableList(ArrayInteger values)
values
- array of elements to load when the list is creating.public static List<String> unmodifiableList(ArrayString values)
values
- array of elements to load when the list is creating.public static List<Img> unmodifiableList(ArrayImage values)
values
- array of elements to load when the list is creating.public static List<Canvas> unmodifiableList(ArrayCanvas values)
values
- array of elements to load when the list is creating.public static <E extends Key> List<E> unmodifiableList(E[] enumValues, E[] values)
Key
).E
- type of keyenumValues
- all possible values of an enumerationvalues
- array of elements to load when the list is creating.public static <E extends Key> List<E> unmodifiableList(E[] enumValues, ArrayString array)
E
- type of keyenumValues
- all possible values of an enumerationarray
- array of strings to load when the list is creating.public static <E extends Key> List<E> unmodifiableKeys(ArrayString array, KeyFactory<E> factory)
Key
values by an java script array of strings.E
- type of keyarray
- array of strings to load when the list is creating.factory
- factory implementation to create keys by a single native object of the array.Key
.public static List<NativeObject> unmodifiableList(ArrayObject values)
values
- array of elements to load when the list is creating.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.public static <E extends NativeArrayContainer<ArrayDouble>> List<E> unmodifiableList(ArrayDoubleArray array, NativeArrayContainerFactory<ArrayDouble,E> factory)
E
- type of native double array containerarray
- array of elements to load when the list is creating.factory
- factory implementation to create containers by a single native array of the arrays.