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 booleanBOOLEANDefault value for BOOLEAN instances,Boolean.FALSE.static CanvasCANVAS_ELEMENTDefault value for HTMLCanvasElement instances, null.static doubleDOUBLEDefault value for DOUBLE instances,Double.NaN.static ImgIMAGE_ELEMENTDefault value for ImageElement instances, null.static intINTEGERDefault value for INTEGER instances,Integer.MIN_VALUE.static StringSTRINGDefault value for STRING instances, null.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanis(double value)Returnstrueif the value is undefined.static booleanis(int value)Returnstrueif the value is undefined.static booleanisNot(double value)Returnstrueif the value is not undefined.static booleanisNot(int value)Returnstrueif 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)
Returnstrueif the value is undefined.- Parameters:
value- value to be checked- Returns:
trueif the value is undefined
-
is
public static boolean is(double value)
Returnstrueif the value is undefined.- Parameters:
value- value to be checked- Returns:
trueif the value is undefined
-
isNot
public static boolean isNot(int value)
Returnstrueif the value is not undefined.- Parameters:
value- value to be checked- Returns:
trueif the value is not undefined
-
isNot
public static boolean isNot(double value)
Returnstrueif the value is not undefined.- Parameters:
value- value to be checked- Returns:
trueif the value is not undefined
-
-