Changeset 12891 in josm for trunk/src/org/openstreetmap/josm/data/Preferences.java
- Timestamp:
- 2017-09-23T23:20:03+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r12885 r12891 660 660 * @param def The default value 661 661 * @return The boolean value or the default value if it could not be parsed 662 */ 662 * @deprecated use {@link PreferencesUtils#getBoolean(IPreferences, String, String, boolean)} 663 */ 664 @Deprecated 663 665 public synchronized boolean getBoolean(final String key, final String specName, final boolean def) { 664 666 boolean generic = getBoolean(key, def); … … 1076 1078 * @param def The default value 1077 1079 * @return The integer value or the default value if it could not be parsed 1078 */ 1080 * @deprecated use {@link PreferencesUtils#getInteger(IPreferences, String, String, int) 1081 */ 1082 @Deprecated 1079 1083 public synchronized int getInteger(String key, String specName, int def) { 1080 1084 String v = get(key+'.'+specName); … … 1122 1126 * @param value The value that should be removed in the collection 1123 1127 * @see #getList(String) 1124 */ 1128 * @deprecated use {@link PreferencesUtils#removeFromCollection(IPreferences, String, String)} 1129 */ 1130 @Deprecated 1125 1131 public synchronized void removeFromCollection(String key, String value) { 1126 1132 List<String> a = new ArrayList<>(getList(key, Collections.<String>emptyList())); … … 1230 1236 * @param val value 1231 1237 * @return {@code true}, if something has changed (i.e. value is different than before) 1232 */ 1238 * @deprecated use {@link PreferencesUtils#putCollectionBounded(IPreferences, String, int, Collection)} 1239 */ 1240 @Deprecated 1233 1241 public boolean putCollectionBounded(String key, int maxsize, Collection<String> val) { 1234 1242 List<String> newCollection = new ArrayList<>(Math.min(maxsize, val.size())); … … 1248 1256 * @param def default array value 1249 1257 * @return array value 1250 */ 1258 * @deprecated use {@link #getListOfLists(java.lang.String, java.util.List)} 1259 */ 1260 @Deprecated 1251 1261 @SuppressWarnings({ "unchecked", "rawtypes" }) 1252 1262 public synchronized Collection<Collection<String>> getArray(String key, Collection<Collection<String>> def) {
Note:
See TracChangeset
for help on using the changeset viewer.
