All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lonelystorm.air.asset.util.PropertiesUtil Maven / Gradle / Ivy

Go to download

The LonelyStorm Air Asset library provides support to be able to compile SASS files at runtime.

There is a newer version: 0.1.8
Show 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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy