org.slim3.commons.util
Class DoubleUtil

java.lang.Object
  extended by org.slim3.commons.util.DoubleUtil

public final class DoubleUtil
extends Object

A utility class for Double.

Version:
3.0
Author:
higa

Method Summary
static Double toDouble(Object o)
          Converts the object to Double.
static double toPrimitiveDouble(Object o)
          Converts the object to primitive double.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toDouble

public static Double toDouble(Object o)
Converts the object to Double.

Parameters:
o - the object
Returns:
the converted value

toPrimitiveDouble

public static double toPrimitiveDouble(Object o)
Converts the object to primitive double.

Parameters:
o - the object
Returns:
the converted value


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.