Package jsinterop.base
Interface JsPropertyMap<T extends @Nullable Object>
@JsType(isNative=true,
name="Object",
namespace="<global>")
public interface JsPropertyMap<T extends @Nullable Object>
Provides abstraction of JavaScript objects as property maps.
See Js.asPropertyMap(Object) to cast an object to JsPropertyMap.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefault voiddefault @Nullable Tdefault @Nullable Anydefault booleandefault @Nullable ObjectGets by qualified name.default @Nullable AnynestedGetAsAny(String qualifiedName) Gets asAnyby qualified name.static <T extends @Nullable Object>
JsPropertyMap<T> of()Returns an empty object literal asJsPropertyMap.static <T extends @Nullable Object>
JsPropertyMap<T> Returns an object literal asJsPropertyMapthat has provided key-value pairs.static <T extends @Nullable Object>
JsPropertyMap<T> Returns an object literal asJsPropertyMapthat has provided key-value pairs.static <T extends @Nullable Object>
JsPropertyMap<T> Returns an object literal asJsPropertyMapthat has provided key-value pairs.default void
-
Method Details
-
of
Returns an empty object literal asJsPropertyMap. -
of
Returns an object literal asJsPropertyMapthat has provided key-value pairs. -
of
@JsOverlay static <T extends @Nullable Object> JsPropertyMap<T> of(String k1, T v1, String k2, T v2) Returns an object literal asJsPropertyMapthat has provided key-value pairs. -
of
@JsOverlay static <T extends @Nullable Object> JsPropertyMap<T> of(String k1, T v1, String k2, T v2, String k3, T v3) Returns an object literal asJsPropertyMapthat has provided key-value pairs. -
get
-
nestedGet
Gets by qualified name. Method will return null if any objects on the path to qualified name is null. e.g. nestedGet("a.b") is equivalent to["a"] != null && ["a"]["b"]). -
getAsAny
-
nestedGetAsAny
Gets asAnyby qualified name. Method will return null if any objects on the path to qualified name is null. e.g. nestedGetAsAny("a.b") is equivalent to["a"] != null && ["a"]["b"]). -
has
-
delete
-
set
-
forEach
-