public class JSIUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <D> jsinterop.base.JsArrayLike<D> |
getNativeArray()
Helper method to create a new, empty
JsArrayLike |
static <D> jsinterop.base.JsArrayLike<D> |
getUnwrappedElementsArray(jsinterop.base.JsArrayLike<D> original)
Returns a
JsArrayLike where each element represents the unwrapped object (i.e. object.value) of the original one. |
static <D> List<D> |
toList(jsinterop.base.JsArrayLike<D> jsArrayLike) |
public static <D> jsinterop.base.JsArrayLike<D> getNativeArray()
JsArrayLikepublic static <D> jsinterop.base.JsArrayLike<D> getUnwrappedElementsArray(jsinterop.base.JsArrayLike<D> original)
JsArrayLike where each element represents the unwrapped object (i.e. object.value) of the original one.
It the original JsArrayLike is null, returns a new, empty oneD - original - public static <D> List<D> toList(jsinterop.base.JsArrayLike<D> jsArrayLike)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.