public int getAsIntegerWithDefault ( String key , int defaultValue ) { Object value = getAsObject ( key ) ; return IntegerConverter . toIntegerWithDefault ( value , defaultValue ) ; }
Converts map element into an integer or returns default value if conversion is not possible .