Utility method to retrieve an integer value from a map in the and provide a default value if the key was not found set.
Syntax
int
getIntOption
(
Map< String,?>
props
,
String
key
,
int
dflt
)
Parameters
-
props –
the Map in which the property values reside
-
key –
property name
-
dflt –
default value if the property is not found.
Returns
the value from the Map or the default.
Usage
the value from the Map or the default.