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