/** * Gets a property value as an {@link Integer}. * * @param configParam the configuration parameter * @return property value */ public Integer getIntegerProperty(ConfigAgrParam configParam) { return Integer.parseInt(properties.getProperty(configParam.name())); }
/** * Gets a property value as a {@link boolean}. * * @param configParam the configuration parameter * @return property value */ public boolean getBooleanProperty(ConfigAgrParam configParam) { return Boolean.parseBoolean(properties.getProperty(configParam.name())); }
/** * Gets a property value as a {@link String}. * * @param configParam the configuration parameter * @return property value */ public String getProperty(ConfigAgrParam configParam) { if (properties == null) { return null; } return properties.getProperty(configParam.name()); }