Package com.atlassian.greenhopper.util
Class NumberUtils
java.lang.Object
com.atlassian.greenhopper.util.NumberUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DoubleConvert an Integer to a Double, returns null for nullstatic DoubleConvert an String to a Double, returns null for nullstatic IntegerConvert a Double into an Integer, returns null for nullstatic IntegerConvert a String to an Integer.static LongConvert a String to a Long.
-
Constructor Details
-
NumberUtils
public NumberUtils()
-
-
Method Details
-
toLong
Convert a String to a Long. Returns null if the String doesn't represent a valid long. For conversion into long primitives, please use org.apache.commons.lang3.math.NumberUtils -
toInteger
Convert a String to an Integer. Returns null if the String doesn't represent a valid Integer. For conversion into long primitives, please use org.apache.commons.lang3.math.NumberUtils -
toInteger
Convert a Double into an Integer, returns null for null -
toDouble
Convert an Integer to a Double, returns null for null -
toDouble
Convert an String to a Double, returns null for null
-