Java Object to Double castDouble(Object o)

Here you can find the source of castDouble(Object o)

Description

cast Double

License

Open Source License

Parameter

Parameter Description
o a parameter

Declaration

public static double castDouble(Object o) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from   w w w.ja va  2 s.c  om*/
     * @param o
     * @return
     */
    public static double castDouble(Object o) {
        return Double.valueOf(o.toString());
    }
}

Related

  1. asDouble(Object obj)
  2. asDouble(Object val, Double def)
  3. asDouble(Object value)
  4. asDouble(Object value)
  5. asDouble(Object value)
  6. castDoubleToFloat(final double v)
  7. castShortToDouble(short[] x)
  8. castToDouble(Object object)
  9. castToDoubleArray(byte[] data)