import java.util.Collections;
import java.util.Date;
import java.util.Enumeration;
+import java.util.HashMap;
import java.util.Locale;
+import java.util.Map;
import java.util.Properties;
import java.util.StringTokenizer;
import java.util.TreeSet;
{
return applicationProperties.getProperty(key);
}
+
+ /**
+ * A convenience method that returns a map holding property values for the
+ * specified keys. A null entry in the map indicates a property that is either
+ * not set, or set with value null.
+ *
+ * @param key
+ * @return
+ */
+ public static Map<String, String> getProperties(String... key)
+ {
+ Map<String, String> map = new HashMap<>();
+ for (String k : key)
+ {
+ map.put(k, getProperty(k));
+ }
+ return map;
+ }
+
/**
* These methods are used when checking if the saved preference is different
* to the default setting