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