public class JsUtils extends Object
Constructor and Description |
---|
JsUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
getProperty(Object map,
String key) |
static double |
getTime() |
static boolean |
isUndefined(Object value) |
static int |
parseInt(String s,
int radix) |
static void |
setProperty(Object map,
String key,
Object value) |
static void |
setPropertySafe(Object map,
String key,
Object value) |
static String |
typeOf(Object obj) |
static <T> T |
uncheckedCast(Object o) |
static boolean |
unsafeCastToBoolean(Object bool) |
static double |
unsafeCastToDouble(Object number) |
@JsMethod(namespace="<window>", name="Date.now") public static double getTime()
@JsMethod(namespace="<window>") public static int parseInt(String s, int radix)
public static boolean isUndefined(Object value)
public static double unsafeCastToDouble(Object number)
public static boolean unsafeCastToBoolean(Object bool)
public static <T> T uncheckedCast(Object o)
Copyright © 2018. All rights reserved.