Package org.pepstock.charba.client.items
Class Undefined
- java.lang.Object
-
- org.pepstock.charba.client.items.Undefined
-
public final class Undefined extends Object
Class with default values when the java script object returns an UNDEFINED value.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
is(double value)
Returnstrue
if the value is undefined.static boolean
is(int value)
Returnstrue
if the value is undefined.static boolean
isNot(double value)
Returnstrue
if the value is not undefined.static boolean
isNot(int value)
Returnstrue
if the value is not undefined.
-
-
-
Field Detail
-
INTEGER
public static final int INTEGER
Default value for INTEGER instances,Integer.MIN_VALUE
.- See Also:
- Constant Field Values
-
DOUBLE
public static final double DOUBLE
Default value for DOUBLE instances,Double.NaN
.- See Also:
- Constant Field Values
-
STRING
public static final String STRING
Default value for STRING instances, null.
-
BOOLEAN
public static final boolean BOOLEAN
Default value for BOOLEAN instances,Boolean.FALSE
.
-
IMAGE_ELEMENT
public static final Img IMAGE_ELEMENT
Default value for ImageElement instances, null.
-
CANVAS_ELEMENT
public static final Canvas CANVAS_ELEMENT
Default value for HTMLCanvasElement instances, null.
-
-
Method Detail
-
is
public static boolean is(int value)
Returnstrue
if the value is undefined.- Parameters:
value
- value to be checked- Returns:
true
if the value is undefined
-
is
public static boolean is(double value)
Returnstrue
if the value is undefined.- Parameters:
value
- value to be checked- Returns:
true
if the value is undefined
-
isNot
public static boolean isNot(int value)
Returnstrue
if the value is not undefined.- Parameters:
value
- value to be checked- Returns:
true
if the value is not undefined
-
isNot
public static boolean isNot(double value)
Returnstrue
if the value is not undefined.- Parameters:
value
- value to be checked- Returns:
true
if the value is not undefined
-
-