rulebook-core/src/main/java/com/deliveredtechnologies/rulebook/FactMap.java
@Deprecated
  public Double getDblVal(String name) {
    Object value = getValue(name);
    if (value != null) {
      if (Float.class == value.getClass()) {
        return Double.valueOf((Float) value);
      }
      if (Double.class == value.getClass()) {
        return (Double)value;
      }
      if (Integer.class == value.getClass()) {
        return Double.valueOf((Integer) value);
      }
      if (Long.class == value.getClass()) {
        return Double.valueOf((Long) value);
      }
      if (String.class == value.getClass()) {
        return Double.parseDouble((String)value);
      }
    }
    return null;
  }
@Deprecated
  public Double getDblVal(String name) {
    Object value = getValue(name);
    if (value != null) {
      if (Float.class == value.getClass()) {
        return Double.valueOf((Float) value);
      }
      if (Double.class == value.getClass()) {
        return (Double)value;
      }
      if (Integer.class == value.getClass()) {
        return Double.valueOf((Integer) value);
      }
      if (Long.class == value.getClass()) {
        return Double.valueOf((Long) value);
      }
      if (String.class == value.getClass()) {
        return Double.parseDouble((String)value);
      }
    }
    return null;
  }
@ Deprecated public Double getDblVal ( String name ) { Object value = getValue ( name ) ; if ( value != null ) { if ( Float . class == value . getClass ( ) ) { return Double . valueOf ( ( Float ) value ) ; } if ( Double . class == value . getClass ( ) ) { return ( Double ) value ; } if ( Integer . class == value . getClass ( ) ) { return Double . valueOf ( ( Integer ) value ) ; } if ( Long . class == value . getClass ( ) ) { return Double . valueOf ( ( Long ) value ) ; } if ( String . class == value . getClass ( ) ) { return Double . parseDouble ( ( String ) value ) ; } } return null ; }
Method getDblVal() gets the Double value of a Fact in the FactMap.
@param name  the name of the Fact in the FactMap
@return      the Double value of the Fact specified
Method getDblVal () gets the Double value of a Fact in the FactMap .