@@ -0,0 +1,1434 @@
+package edu.smcm.gamedev.butterseal;%0A%0Aimport java.util.Map;%0A%0Apublic class BSUtil %7B%0A    /**%0A     * Iterate through the properties we were given.%0A     * First check if the map contains the key.%0A     * If it does (cf. short-circuiting),%0A     * then see if it equals the value we were given.%0A     *%0A     * @param map A property listing within which to check%0A     * @param value a value to check for%0A     * @param properties a list of properties to check%0A     * @return there exists property in properties such that property=value%0A     */%0A    public static boolean any(Map%3CString, String%3E map, String value, String... properties) %7B%0A        for (String property : properties) %7B%0A            if (map.containsKey(property) && map.get(property).equals(value)) %7B%0A                return true;%0A            %7D%0A        %7D%0A        return false;%0A    %7D%0A%0A    /**%0A     * Same algorithm as %7B@link #any(Map, String, String...)%7D.%0A     * @param map A property listing within which to check%0A     * @param value a value to check for%0A     * @param properties a list of properties to check%0A     * @return for each property in properties, property=value%0A     */%0A    public static boolean all(Map%3CString, String%3E map, String value, String... properties) %7B%0A        for (String property : properties) %7B%0A            if (!map.containsKey(property) %7C%7C !map.get(property).equals(value)) %7B%0A                return false;%0A            %7D%0A        %7D%0A        return true;%0A    %7D%0A%7D%0A

Add utility class for property checking