Changeset 4635 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 04.12.2011 20:00:58 (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r4634 r4635 61 61 * saved upon set-access. 62 62 * 63 * Each property is a simple key=value pair of Strings. 63 * Each property is a key=setting pair, where key is a String and setting can be one of 64 * 4 types: 65 * string, list, list of lists and list of maps. 64 66 * In addition, each key has a unique default value that is set when the value is first 65 67 * accessed using one of the get...() methods. You can use the same preference … … 69 71 * off all possible settings. 70 72 * 71 * At the moment, there is no such thing as an empty value.72 * If you put "" or null as value, the property is removed.73 * At the moment, you cannot put the empty string for string properties. 74 * put(key, "") means, the property is removed. 73 75 * 74 76 * @author imi … … 83 85 84 86 /** 85 * Map the property name to the property object. Does not contain null or "" values.87 * Map the property name to strings. Does not contain null or "" values. 86 88 */ 87 89 protected final SortedMap<String, String> properties = new TreeMap<String, String>(); 90 /** Map of defaults, can contain null values */ 88 91 protected final SortedMap<String, String> defaults = new TreeMap<String, String>(); 89 92 protected final SortedMap<String, String> colornames = new TreeMap<String, String>(); 90 93 94 /** Mapping for list settings. Must not conatin null values */ 91 95 protected final SortedMap<String, List<String>> collectionProperties = new TreeMap<String, List<String>>(); 96 /** Defaults, can contain null values */ 92 97 protected final SortedMap<String, List<String>> collectionDefaults = new TreeMap<String, List<String>>(); 93 98
Note: See TracChangeset
for help on using the changeset viewer.
