Class NumberUtils

java.lang.Object
com.atlassian.greenhopper.util.NumberUtils

public class NumberUtils extends Object
  • Constructor Details

    • NumberUtils

      public NumberUtils()
  • Method Details

    • toLong

      public static Long toLong(String s)
      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

      public static Integer toInteger(String s)
      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

      public static Integer toInteger(Double value)
      Convert a Double into an Integer, returns null for null
    • toDouble

      public static Double toDouble(Integer value)
      Convert an Integer to a Double, returns null for null
    • toDouble

      public static Double toDouble(String value)
      Convert an String to a Double, returns null for null