Optional<Integer> getInteger(String key) {
        String value = (String) get(key);
        return Optional.ofNullable(Integer.parseInt(value));
    }
Optional < Integer > getInteger ( String key ) { String value = ( String ) get ( key ) ; return Optional . ofNullable ( Integer . parseInt ( value ) ) ; }
Returns the integer value of the given key.