public class JsCollections extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
JsCollections.ForEachCallback<V>
|
| Modifier and Type | Method and Description |
|---|---|
static <T> JsArray<T> |
array()
Creates a new JavaScript Array.
|
static <T> JsArray<T> |
array(T... values)
Creates a new JavaScript Array with the given contents.
|
static <K,V> JsMap<K,V> |
map()
Creates a new JavaScript Map.
|
static <V> JsSet<V> |
set()
Creates a new empty JavaScript Set.
|
static <T> JsSet<T> |
set(JsSet<T> values)
Creates a new JavaScript Set with the same contents as another set.
|
static <K,V> JsWeakMap<K,V> |
weakMap()
Creates a new JavaScript WeakMap.
|
public static <T> JsArray<T> array()
T - the array type@SafeVarargs public static <T> JsArray<T> array(T... values)
T - the array typevalues - the values of the new arraypublic static <K,V> JsMap<K,V> map()
K - the key typeV - the value typepublic static <K,V> JsWeakMap<K,V> weakMap()
K - the key typeV - the value typepublic static <V> JsSet<V> set()
V - the set typeCopyright © 2000–2019 Vaadin Ltd. All rights reserved.