@@ -0,0 +1,1062 @@
+package io.tetrapod.core.utils;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Apublic class PrefMap %7B%0A%0A   private final Map%3CString, String%3E prefs = new HashMap%3C%3E();%0A%0A   public String getPref(String key, String def) %7B%0A      return prefs.containsKey(key) ? prefs.get(key) : def;%0A   %7D%0A%0A   public boolean getPref(String key, boolean def) %7B%0A      return prefs.containsKey(key) ? Boolean.parseBoolean(prefs.get(key)) : def;%0A   %7D%0A%0A   public int getPref(String key, int def) %7B%0A      return prefs.containsKey(key) ? Integer.parseInt(prefs.get(key)) : def;%0A   %7D%0A%0A   public long getPref(String key, long def) %7B%0A      return prefs.containsKey(key) ? Long.parseLong(prefs.get(key)) : def;%0A   %7D%0A%0A   public void setPref(String key, String val) %7B%0A      prefs.put(key, val);%0A   %7D%0A%0A   public void setPref(String key, boolean val) %7B%0A      prefs.put(key, Boolean.toString(val));%0A   %7D%0A%0A   public void setPref(String key, int val) %7B%0A      prefs.put(key, Integer.toString(val));%0A   %7D%0A%0A   public void setPref(String key, long val) %7B%0A      prefs.put(key, Long.toString(val));%0A   %7D%0A%0A%7D%0A

Add a simple PrefMap class for basic k/v stuff