cdc.util.prefs.defaults.LongPreference Maven / Gradle / Ivy
package cdc.util.prefs.defaults;
import java.util.prefs.Preferences;
import cdc.util.prefs.AbstractPreference;
/**
* Long preference (node, key) pair.
*
* @author Damien Carbonne
*/
public final class LongPreference extends AbstractPreference {
public LongPreference(Preferences node,
String key,
Long def) {
super(Long.class,
node,
key,
def,
Object::toString,
Long::parseLong);
}
}