public final class Undefined extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
BOOLEAN
Default value for BOOLEAN instances,
Boolean.FALSE . |
static Canvas |
CANVAS_ELEMENT
Default value for HTMLCanvasElement instances, null.
|
static double |
DOUBLE
Default value for DOUBLE instances,
Double.NaN . |
static Img |
IMAGE_ELEMENT
Default value for ImageElement instances, null.
|
static int |
INTEGER
Default value for INTEGER instances,
Integer.MIN_VALUE . |
static String |
STRING
Default value for STRING instances, null.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
is(double value)
Returns
true if the value is undefined. |
static boolean |
is(int value)
Returns
true if the value is undefined. |
static boolean |
isNot(double value)
Returns
true if the value is not undefined. |
static boolean |
isNot(int value)
Returns
true if the value is not undefined. |
public static final int INTEGER
Integer.MIN_VALUE
.public static final double DOUBLE
Double.NaN
.public static final String STRING
public static final boolean BOOLEAN
Boolean.FALSE
.public static final Img IMAGE_ELEMENT
public static final Canvas CANVAS_ELEMENT
public static boolean is(int value)
true
if the value is undefined.value
- value to be checkedtrue
if the value is undefinedpublic static boolean is(double value)
true
if the value is undefined.value
- value to be checkedtrue
if the value is undefinedpublic static boolean isNot(int value)
true
if the value is not undefined.value
- value to be checkedtrue
if the value is not undefinedpublic static boolean isNot(double value)
true
if the value is not undefined.value
- value to be checkedtrue
if the value is not undefined