Class 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 Detail

      • 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)
        Returns true 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)
        Returns true 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)
        Returns true 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)
        Returns true if the value is not undefined.
        Parameters:
        value - value to be checked
        Returns:
        true if the value is not undefined