public double getDouble(String key, double def) {
        Object tmp = objectMap.get(key);
        return tmp != null && tmp instanceof Number ? ((Number) tmp)
                .doubleValue() : def;
    }
public double getDouble ( String key , double def ) { Object tmp = objectMap . get ( key ) ; return tmp != null && tmp instanceof Number ? ( ( Number ) tmp ) . doubleValue ( ) : def ; }
get double value.

@param key key.
@param def default value.
@return value or default value.