public class PositiveLength extends Length
Length.Unit
Constructor and Description |
---|
PositiveLength(String length)
Construct PositiveLength by the parsing the given string
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isValid(String stringValue)
check if the specified String instance is a valid positiveLength data
type
|
static PositiveLength |
valueOf(String stringValue)
Returns a PositiveLength instance representing the specified String value
|
public PositiveLength(String length) throws NumberFormatException
length
- The String to be parsed into PositiveLengthNumberFormatException
- if the given argument is not a valid PostitiveLengthpublic static PositiveLength valueOf(String stringValue) throws NumberFormatException
stringValue
- a String valueNumberFormatException
- if the given argument is not a valid PostitiveLengthpublic static boolean isValid(String stringValue)
stringValue
- the value to be testedCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.