Ignore:
Timestamp:
2017-09-23T23:20:03+02:00 (9 years ago)
Author:
bastiK
Message:

see #15229 - move non-essential helper methods from Preferences to PreferencesUtils

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r12885 r12891  
    660660     * @param def The default value
    661661     * @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
    663665    public synchronized boolean getBoolean(final String key, final String specName, final boolean def) {
    664666        boolean generic = getBoolean(key, def);
     
    10761078     * @param def The default value
    10771079     * @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
    10791083    public synchronized int getInteger(String key, String specName, int def) {
    10801084        String v = get(key+'.'+specName);
     
    11221126     * @param value The value that should be removed in the collection
    11231127     * @see #getList(String)
    1124      */
     1128     * @deprecated use {@link PreferencesUtils#removeFromCollection(IPreferences, String, String)}
     1129     */
     1130    @Deprecated
    11251131    public synchronized void removeFromCollection(String key, String value) {
    11261132        List<String> a = new ArrayList<>(getList(key, Collections.<String>emptyList()));
     
    12301236     * @param val value
    12311237     * @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
    12331241    public boolean putCollectionBounded(String key, int maxsize, Collection<String> val) {
    12341242        List<String> newCollection = new ArrayList<>(Math.min(maxsize, val.size()));
     
    12481256     * @param def default array value
    12491257     * @return array value
    1250      */
     1258     * @deprecated use {@link #getListOfLists(java.lang.String, java.util.List)}
     1259     */
     1260    @Deprecated
    12511261    @SuppressWarnings({ "unchecked", "rawtypes" })
    12521262    public synchronized Collection<Collection<String>> getArray(String key, Collection<Collection<String>> def) {
Note: See TracChangeset for help on using the changeset viewer.