Package oracle.stellent.ridc.common.util
Class NumberTools
java.lang.Object
oracle.stellent.ridc.common.util.NumberTools
Utility class to deal with Numbers and Integers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
parseInteger
(String str, int defValue) Attempts to parse an integer and provides a default if it fails.
-
Constructor Details
-
NumberTools
public NumberTools()
-
-
Method Details
-
parseInteger
Attempts to parse an integer and provides a default if it fails.- Parameters:
str
- string to be parseddefValue
- default value if parsing fails- Returns:
-