All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cdc.util.prefs.defaults.BytePreference Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy