@Override
  public final Double fromString(final Map<String, Object> pAddParam,
    final String pStrVal) throws Exception {
    if (pStrVal == null || "".equals(pStrVal)) {
      return null;
    }
    if (pAddParam != null) {
      String dsep = (String) pAddParam.get("decSepv");
      if (dsep != null) {
        String dgsep = (String) pAddParam.get("decGrSepv");
        String strVal = pStrVal.replace(dgsep, "").replace(dsep, ".");
        return Double.valueOf(strVal);
      }
    }
    return Double.valueOf(pStrVal);
  }
@ Override public final Double fromString ( final Map < String , Object > pAddParam , final String pStrVal ) throws Exception { if ( pStrVal == null || "" . equals ( pStrVal ) ) { return null ; } if ( pAddParam != null ) { String dsep = ( String ) pAddParam . get ( "decSepv" ) ; if ( dsep != null ) { String dgsep = ( String ) pAddParam . get ( "decGrSepv" ) ; String strVal = pStrVal . replace ( dgsep , "" ) . replace ( dsep , "." ) ; return Double . valueOf ( strVal ) ; } } return Double . valueOf ( pStrVal ) ; }
<p>Convert from string.</p>
@param pAddParam additional params, e.g. IRequestData
to fill owner itsVersion.
@param pStrVal string representation
@return Double value
@throws Exception - an exception