|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.adobe.mediacore.utils.NumberUtils
public class NumberUtils
Class containing various helper methods related to numbers.
Constructor Summary | |
---|---|
NumberUtils()
|
Method Summary | |
---|---|
static boolean |
isNumeric(String input)
Check if the input provided is a number. |
static boolean |
parseBoolean(String value)
Parse input to boolean. |
static long |
parseLong(String value,
long defaultValue)
Returns the long value extracted from the provided string. |
static long |
parseNumber(String value,
long defaultValue)
Returns the long value extracted from the provided string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumberUtils()
Method Detail |
---|
public static long parseLong(String value, long defaultValue)
value
- the string value to be parseddefaultValue
- the default value to be returned in case of an error
public static long parseNumber(String value, long defaultValue)
value
- the input string to be parsed to numberdefaultValue
- the default value to be returned in case of an error
public static boolean parseBoolean(String value) throws NumberFormatException
value
- the input string to be parsed to boolean
NumberFormatException
- if the input is not a booleanpublic static boolean isNumeric(String input)
input
- the string to be checked
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |