/** * Returns an optional Integer property value associated with the given key. * * @param key the property name to resolve * @return An optional Integer property */ public Optional<Integer> getInteger(String key) { return Optional.ofNullable(configuration.getInteger(key, null)); }
/** * Returns an optional Integer property value associated with the given key. * * @param key the property name to resolve * @return An optional Integer property */ public Optional<Integer> getInteger(String key) { return Optional.ofNullable(configuration.getInteger(key, null)); }
/** * Returns an optional Integer property value associated with the given key. * * @param key the property name to resolve * @return An optional Integer property */ public Optional<Integer> getInteger(String key) { return Optional.ofNullable(configuration.getInteger(key, null)); }
protected final Integer getIntegerOptionValue(String key) { String valueStr = _line.getOptionValue(key); if (valueStr != null) { _config.setProperty(key, Integer.parseInt(valueStr)); } return _config.getInteger(key, null); }