public static String getValue ( Map < String , String > map , String key , String defaultValue ) { return map . containsKey ( key ) ? map . get ( key ) : defaultValue ; }
Returns the value contained in a map of string if it exists using the key .