com.lonelystorm.air.asset.util.PropertiesUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of air-asset Show documentation
Show all versions of air-asset Show documentation
The LonelyStorm Air Asset library provides support to be able to compile SASS files at runtime.
The newest version!
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;
}
}