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