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.JsDoubleArrayList
public static JsIntegerArrayList build(int... values)
values
- array of elements to load when the list is creating.null
if the elements are null.JsIntegerArrayList
public static JsStringArrayList build(java.lang.String... values)
values
- array of elements to load when the list is creating.null
if the elements are null.JsStringArrayList
public static JsStringArrayList build(IsColor... values)
values
- array of elements to load when the list is creating.null
if the elements are null.JsStringArrayList
public 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
,
JsObjectArrayList
public 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
,
JavaScriptObjectContainer
public 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.JsEnumValueArrayList
public 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