Class NonNegativePixelLength

    • Constructor Detail

      • NonNegativePixelLength

        public NonNegativePixelLength​(String pixelLength)
                               throws NumberFormatException
        Construct NonNegativePixelLength by the parsing the given string
        Parameters:
        pixelLength - The String to be parsed into NonNegativePixelLength
        Throws:
        NumberFormatException - if the given argument is not a valid NonNegativePixelLength
    • Method Detail

      • toString

        public String toString()
        Returns a String Object representing this NonNegativePixelLength's value
        Overrides:
        toString in class Length
        Returns:
        return a string representation of the value of this NonNegativePixelLength object
      • valueOf

        public static NonNegativePixelLength valueOf​(String stringValue)
                                              throws NumberFormatException
        Returns a NonNegativePixelLength instance representing the specified String value
        Parameters:
        stringValue - a String value
        Returns:
        return a NonNegativePixelLength instance representing stringValue
        Throws:
        NumberFormatException - if the given argument is not a valid NonNegativePixelLength
      • isValid

        public static boolean isValid​(String stringValue)
        check if the specified String instance is a valid nonNegativePixelLength data type
        Parameters:
        stringValue - the value to be tested
        Returns:
        true if the value of argument is valid for nonNegativePixelLength data type false otherwise