Java Double Number Create toDouble(Object value)

Here you can find the source of toDouble(Object value)

Description

to Double

License

Apache License

Declaration

public static Double toDouble(Object value) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static Double toDouble(Object value) {

        if (value == null) {
            return new Double(0);
        } else {//from   w  w w. j  av a2  s . c o m
            return new Double(value.toString());
        }
    }

    public static String toString(Object value) {

        if (value == null) {
            return "";
        } else {
            return value.toString();
        }
    }
}

Related

  1. toDouble(Object objValue)
  2. toDouble(Object prmIntObject)
  3. toDouble(Object val)
  4. toDouble(Object val)
  5. toDouble(Object val)
  6. toDouble(Object value)
  7. toDouble(Object value)
  8. toDouble(Object value)
  9. toDouble(Object value)