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