code: public Integer getInteger(String key)
     {
        Integer iVal = null;
        String sVal = getText(key);
  
        if ((sVal != null) && (sVal.length() > 0))
        {
  
           iVal = Integer.valueOf(sVal);
  
        }
        return iVal;
  
     }
docs: Get a Settings property as an Integer object.
  
  @param key the Key Name of the numeric property to be returned.
  @return Value of the property as an Integer or null if no property found.