public final class ArrayListHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <E extends Key> |
build(java.lang.Class<E> clazz,
E[] values)
Creates a JavaScript array list of EnumValues.
|
static <E extends Key> |
build(java.lang.Class<E> clazz,
JsStringArrayList list)
Creates a JavaScript array list of EnumValues.
|
static JsDoubleArrayList |
build(double... values)
Creates a JavaScript array list of doubles.
|
static <E extends GenericJavaScriptObject> |
build(E[] values)
Creates a JavaScript array list of generic javaScript objects.
|
static JsIntegerArrayList |
build(int... values)
Creates a JavaScript array list of integers.
|
static JsStringArrayList |
build(IsColor... values)
Creates a JavaScript array list of strings.
|
static JsStringArrayList |
build(java.lang.String... values)
Creates a JavaScript array list of strings.
|
static <E> AbstractList<E> |
load(AbstractList<E> container,
E[] values)
Loads an existing list of JavaScript object container.
|
public static JsDoubleArrayList build(double... values)
values - array of elements to load when the list is creating.null if the elements are null.JsDoubleArrayListpublic static JsIntegerArrayList build(int... values)
values - array of elements to load when the list is creating.null if the elements are null.JsIntegerArrayListpublic static JsStringArrayList build(java.lang.String... values)
values - array of elements to load when the list is creating.null if the elements are null.JsStringArrayListpublic static JsStringArrayList build(IsColor... values)
values - array of elements to load when the list is creating.null if the elements are null.JsStringArrayListpublic static <E extends GenericJavaScriptObject> JsObjectArrayList<E> build(E[] values)
E - type of java script objectvalues - array of elements to load when the list is creating.null if the elements are null.GenericJavaScriptObject,
JsObjectArrayListpublic static <E> AbstractList<E> load(AbstractList<E> container, E[] values)
E - type of keycontainer - list instance of JavaScript object containervalues - array of elements to load when the list is creating.AbstractList,
JavaScriptObjectContainerpublic static <E extends Key> JsEnumValueArrayList<E> build(java.lang.Class<E> clazz, E[] values)
E - type of keyclazz - Enum class with all possible values of enumerationvalues - array of elements to load when the list is creating.null if the elements are null.JsEnumValueArrayListpublic static <E extends Key> JsEnumValueArrayList<E> build(java.lang.Class<E> clazz, JsStringArrayList list)
E - type of keyclazz - Enum class with all possible values of enumerationlist - a string array listnull if the list is null.JsEnumValueArrayList,
JsStringArrayList