Ignore:
Timestamp:
2017-09-24T11:11:20+02:00 (7 years ago)
Author:
bastiK
Message:

see #15229 - update method name and signature for consistency

File:
1 edited

Legend:

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

    r12891 r12894  
    528528
    529529    /**
    530      * Removes a value from a given String collection
     530     * Removes a value from a given String list
    531531     * @param prefs the preferences
    532      * @param key The preference key the collection is stored with
    533      * @param value The value that should be removed in the collection
    534      * @see #getList(String)
    535      * @since 12891
    536      */
    537     public static void removeFromCollection(IPreferences prefs, String key, String value) {
     532     * @param key The preference key the list is stored with
     533     * @param value The value that should be removed in the list
     534     * @since 12894
     535     */
     536    public static void removeFromList(IPreferences prefs, String key, String value) {
    538537        synchronized (prefs) {
    539538            List<String> a = new ArrayList<>(prefs.getList(key, Collections.<String>emptyList()));
     
    544543
    545544    /**
    546      * Saves at most {@code maxsize} items of collection {@code val}.
     545     * Saves at most {@code maxsize} items of list {@code val}.
    547546     * @param prefs the preferences
    548547     * @param key key
     
    550549     * @param val value
    551550     * @return {@code true}, if something has changed (i.e. value is different than before)
    552      * @since 12891
    553      */
    554     public static boolean putCollectionBounded(IPreferences prefs, String key, int maxsize, Collection<String> val) {
     551     * @since 12894
     552     */
     553    public static boolean putListBounded(IPreferences prefs, String key, int maxsize, List<String> val) {
    555554        List<String> newCollection = new ArrayList<>(Math.min(maxsize, val.size()));
    556555        for (String i : val) {
Note: See TracChangeset for help on using the changeset viewer.