Ignore:
Timestamp:
2017-09-14T02:25:27+02:00 (7 years ago)
Author:
bastiK
Message:

see #15229 - include support for the long type in IPreferences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/spi/preferences/IPreferences.java

    r12847 r12853  
    105105
    106106    /**
    107      * Set a boolean value for a certain setting.
     107     * Set an integer value for a certain setting.
    108108     * @param key the unique identifier for the setting
    109109     * @param value The new value
     
    112112     */
    113113    boolean putInt(String key, int value);
     114
     115    /**
     116     * Gets a long preference
     117     * @param key The preference key
     118     * @param def The default value to use
     119     * @return The long value or the default value if it could not be parsed
     120     */
     121    long getLong(String key, long def);
     122
     123    /**
     124     * Set a long value for a certain setting.
     125     * @param key the unique identifier for the setting
     126     * @param value The new value
     127     * @return {@code true}, if something has changed (i.e. value is different than before)
     128     */
     129    boolean putLong(String key, long value);
    114130
    115131    /**
Note: See TracChangeset for help on using the changeset viewer.