com.atlassian.greenhopper.util
Class NumberUtils

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

public class NumberUtils
extends java.lang.Object


Constructor Summary
NumberUtils()
           
 
Method Summary
static java.lang.Double toDouble(java.lang.Integer value)
          Convert an Integer to a Double, returns null for null
static java.lang.Double toDouble(java.lang.String value)
          Convert an String to a Double, returns null for null
static java.lang.Integer toInteger(java.lang.Double value)
          Convert a Double into an Integer, returns null for null
static java.lang.Integer toInteger(java.lang.String s)
          Convert a String to an Integer.
static java.lang.Long toLong(java.lang.String s)
          Convert a String to a Long.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberUtils

public NumberUtils()
Method Detail

toLong

public static java.lang.Long toLong(java.lang.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.lang.math.NumberUtils


toInteger

public static java.lang.Integer toInteger(java.lang.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.lang.math.NumberUtils


toInteger

public static java.lang.Integer toInteger(java.lang.Double value)
Convert a Double into an Integer, returns null for null


toDouble

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


toDouble

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



Copyright © 2007-2014 Atlassian. All Rights Reserved.