public final class JSType extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isRepresentableAsInt(double number)
Returns true if double number can be represented as an int.
|
static boolean |
isRepresentableAsLong(double number)
Returns true if double number can be represented as a long.
|
static boolean |
isStrictlyRepresentableAsInt(double number)
Returns true if double number can be represented as an int.
|
static boolean |
isStrictlyRepresentableAsLong(double number)
Returns true if double number can be represented as a long.
|
public static boolean isRepresentableAsInt(double number)
JSType.isStrictlyRepresentableAsInt(double).number - a double to inspectpublic static boolean isStrictlyRepresentableAsInt(double number)
JSType.isRepresentableAsInt(double).number - a double to inspectpublic static boolean isRepresentableAsLong(double number)
JSType.isStrictlyRepresentableAsLong(double).number - a double to inspectpublic static boolean isStrictlyRepresentableAsLong(double number)
JSType.isRepresentableAsLong(double).number - a double to inspect