List of utility methods to do Object to Double
double | objectToDouble(Object obj) object To Double if (obj instanceof Integer) { Integer intObj = (Integer) obj; return intObj.doubleValue(); } else if (obj instanceof Double) { Double doubleObj = (Double) obj; return doubleObj; return 0; ... |
double | objectToDouble(Object p1) object To Double if (p1 == null) { return 0.0d; if (p1 instanceof Character) { return (double) ((Character) p1).charValue(); return ((Number) p1).doubleValue(); |
double | objToDouble(Object obj) Converts an arbitrary object to a double. if (obj == null) { return Double.NaN; if (obj instanceof Number) { return ((Number) obj).doubleValue(); double result = Double.NaN; try { ... |
Double | objToDouble(Object obj) obj To Double Double doubleObj = null; if (obj != null) { doubleObj = (Double) obj; return doubleObj; |