
com.blazebit.persistence.impl.util.PropertyUtils Maven / Gradle / Ivy
The newest version!
package com.blazebit.persistence.impl.util;
import java.util.Map;
import java.util.Properties;
public class PropertyUtils {
public static boolean getAsBooleanProperty(Properties properties, String key, boolean defaultValue) {
String value = properties.getProperty(key);
return value == null ? defaultValue : Boolean.parseBoolean(value);
}
public static boolean getAsBooleanProperty(Map properties, String key, boolean defaultValue) {
String value = properties.get(key);
return value == null ? defaultValue : Boolean.parseBoolean(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy