public < T > T getAsTypeWithDefault ( Class < T > type , String key , T defaultValue ) { Object value = getAsObject ( key ) ; return TypeConverter . toTypeWithDefault ( type , value , defaultValue ) ; }
Converts map element into a value defined by specied typecode . If conversion is not possible it returns default value .