/** * Construct Length by the parsing the given string * * @param length * The String to be parsed into Length * @throws NumberFormatException if the given argument is not a valid Length */ public Length(String length) throws NumberFormatException { if (!isValid(length)) { throw new NumberFormatException("parameter is invalid for datatype Length"); } mLengthString = length; }
/** * Construct Length by the parsing the given string * * @param length * The String to be parsed into Length * @throws NumberFormatException if the given argument is not a valid Length */ public Length(String length) throws NumberFormatException { if (!isValid(length)) { throw new NumberFormatException("parameter is invalid for datatype Length"); } mLengthString = length; }
/** * Construct Length by the parsing the given string * * @param length * The String to be parsed into Length * @throws NumberFormatException if the given argument is not a valid Length */ public Length(String length) throws NumberFormatException { if (!isValid(length)) { throw new NumberFormatException("parameter is invalid for datatype Length"); } mLengthString = length; }