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