()
| 84 | } |
| 85 | |
| 86 | private synchronized static Hashtable<String, Object> get() { |
| 87 | if (p == null) { |
| 88 | if (Storage.getInstance().exists(preferencesLocation)) { |
| 89 | p = (Hashtable<String, Object>) Storage.getInstance().readObject(preferencesLocation, false); |
| 90 | } |
| 91 | if (p == null) { |
| 92 | p = new Hashtable<String, Object>(); |
| 93 | } |
| 94 | } |
| 95 | return p; |
| 96 | } |
| 97 | |
| 98 | private static synchronized void save() { |
| 99 | Storage.getInstance().writeObject(preferencesLocation, p, false); |