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

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy