public class NonNegativeLength extends Length
Length.Unit| Constructor and Description |
|---|
NonNegativeLength(String length)
Construct NonNegativeLength 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 nonNegativeLength data type
|
static NonNegativeLength |
valueOf(String stringValue)
Returns a NonNegativeLength instance representing the specified String value
|
public NonNegativeLength(String length) throws NumberFormatException
length - The String to be parsed into NonNegativeLengthNumberFormatException - if the given argument is not a valid NonNegativeLengthpublic static NonNegativeLength valueOf(String stringValue) throws NumberFormatException
stringValue - a String valueNumberFormatException - if the given argument is not a valid NonNegativeLengthpublic static boolean isValid(String stringValue)
stringValue - the value to be testedCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.