![JAR search and dependency download from the Maven repository](/logo.png)
com.lonelystorm.air.asset.util.PropertiesUtil Maven / Gradle / Ivy
package com.lonelystorm.air.asset.util;
import org.apache.sling.api.resource.ValueMap;
public class PropertiesUtil {
private PropertiesUtil() {
};
public static boolean containsProperty(ValueMap properties, String key) {
return properties.containsKey(key);
}
public static boolean comparePropertyValue(ValueMap properties, String key, T expected) {
if (containsProperty(properties, key)) {
Object value = properties.get(key, expected.getClass());
return expected.equals(value);
}
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy