Package org.aksw.iguana.commons.numbers
Class NumberUtils
- java.lang.Object
-
- org.aksw.iguana.commons.numbers.NumberUtils
-
public class NumberUtils extends java.lang.Object
Utils class for everything with numbers- Author:
- f.conrads
-
-
Constructor Summary
Constructors Constructor Description NumberUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Double
getDouble(java.lang.String nm)
Returns either a double representation of the String nm or null.static java.lang.Long
getLong(java.lang.String nm)
Returns either a long represantation of the String nm or null.
-
-
-
Method Detail
-
getLong
public static java.lang.Long getLong(java.lang.String nm)
Returns either a long represantation of the String nm or null.- Parameters:
nm
- String which should be parsed- Returns:
- String as a long representation if String is a Long, otherwise null
-
getDouble
public static java.lang.Double getDouble(java.lang.String nm)
Returns either a double representation of the String nm or null.- Parameters:
nm
- String which should be parsed- Returns:
- String as a double representation if String is a double, otherwise null
-
-