Class BaseInteger

    • Constructor Detail

      • BaseInteger

        public BaseInteger()
        Initializes the string with length 0.
      • BaseInteger

        public BaseInteger​(String s)
        Initializes the object with the string to parse.
        Parameters:
        s - the string to parse
      • BaseInteger

        public BaseInteger​(Integer value)
        Initializes the object with the given value.
        Parameters:
        value - the value to use
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the internal object.
        Overrides:
        initialize in class BaseObject
      • isValid

        public boolean isValid​(String value)
        Checks whether the string value is a valid presentation for this class.
        Specified by:
        isValid in class BaseObject
        Parameters:
        value - the string value to check
        Returns:
        true if parseable int
      • setValue

        public void setValue​(String value)
        Sets the string value.
        Specified by:
        setValue in class BaseObject
        Parameters:
        value - the string value
      • getValue

        public String getValue()
        Returns the current string value.
        Specified by:
        getValue in class BaseObject
        Returns:
        the string value
      • intValue

        public int intValue()
        Returns the int value.
        Returns:
        the int value
      • getTipText

        public String getTipText()
        Returns a tool tip for the GUI editor (ignored if null is returned).
        Specified by:
        getTipText in class BaseObject
        Returns:
        the tool tip
      • toPrimitive

        public static int[] toPrimitive​(BaseInteger[] values)
        Turns the BaseInteger array into a primitive array.
        Parameters:
        values - the array to convert
        Returns:
        the primitive array
      • toBaseInteger

        public static BaseInteger[] toBaseInteger​(int[] values)
        Turns the primitive array into a BaseInteger one.
        Parameters:
        values - the array to convert
        Returns:
        the BaseObject array
      • toNumber

        public static Integer[] toNumber​(BaseInteger[] values)
        Turns the BaseInteger array into a number array.
        Parameters:
        values - the array to convert
        Returns:
        the number array
      • toBaseInteger

        public static BaseInteger[] toBaseInteger​(Integer[] values)
        Turns the primitive array into a BaseInteger one.
        Parameters:
        values - the array to convert
        Returns:
        the BaseObject array