org.tuckey.utils
Class NumberUtils

java.lang.Object
  extended byorg.tuckey.utils.NumberUtils

public class NumberUtils
extends java.lang.Object

Written in the style of commons-lang NumberUtils with only the with only two methods.

Version:
$Revision: 1.3 $ $Date: 2005/03/31 10:09:24 $
Author:
Paul Tuckey

Constructor Summary
NumberUtils()
           
 
Method Summary
static int stringToInt(java.lang.String str)
           
static int stringToInt(java.lang.String str, int defaultValue)
           
static long stringToLong(java.lang.String str)
           
static long stringToLong(java.lang.String str, long defaultValue)
           
 
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

stringToInt

public static int stringToInt(java.lang.String str)

stringToInt

public static int stringToInt(java.lang.String str,
                              int defaultValue)

stringToLong

public static long stringToLong(java.lang.String str)

stringToLong

public static long stringToLong(java.lang.String str,
                                long defaultValue)