T - item type@Deprecated public class JreJsArray<T> extends JsArray<T>
JsArray, should only be used for testing.| Constructor and Description |
|---|
JreJsArray(T... values)
Deprecated.
Creates a new array with the given values.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
asList(JsArray<T> array)
Deprecated.
Gets the values of this array as a list.
|
void |
doClear()
Deprecated.
Internal method called to clear the array.
|
T |
doGet(int index)
Deprecated.
JRE implementation of the final
JsArray.get(int) method. |
void |
doSet(int index,
T value)
Deprecated.
JRE implementation of the final
JsArray.set(int, Object) method. |
JsArray<T> |
doSpliceArray(int index,
int remove,
JsArray<? extends T> add)
Deprecated.
JRE implementation of the final
JsArray.spliceArray(int, int, JsArray)
method. |
void |
forEach(JsCollections.ForEachCallback<T> callback)
Deprecated.
Invokes the provided callback for each value in this array.
|
int |
length()
Deprecated.
Gets the current length of this array.
|
int |
push(T... values)
Deprecated.
Adds items to the end of this array.
|
T |
shift()
Deprecated.
Removes and returns the first value from the array.
|
JsArray<T> |
splice(int index,
int remove,
T... add)
Deprecated.
Removes and adds a number of items at the given index.
|
@SafeVarargs public JreJsArray(T... values)
values - the values of the new arraypublic T doGet(int index)
JsArray.get(int) method.index - the indexpublic void doSet(int index,
T value)
JsArray.set(int, Object) method.index - the index to setvalue - the value to setpublic int push(T... values)
JsArraypublic int length()
JsArraypublic JsArray<T> doSpliceArray(int index, int remove, JsArray<? extends T> add)
JsArray.spliceArray(int, int, JsArray)
method.index - the index at which to do the operationremove - the number of items to removeadd - new items to addpublic JsArray<T> splice(int index, int remove, T... add)
JsArraypublic void doClear()
public static <T> List<T> asList(JsArray<T> array)
T - the array typearray - the js array to get the values frompublic T shift()
JsArrayCopyright © 2000–2022 Vaadin Ltd. All rights reserved.