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

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

package cdc.util.prefs.defaults;

import java.util.prefs.Preferences;

import cdc.util.prefs.AbstractPreference;

/**
 * Float preference (node, key) pair.
 *
 * @author Damien Carbonne
 */
public final class FloatPreference extends AbstractPreference {
    public FloatPreference(Preferences node,
                           String key,
                           Float def) {
        super(Float.class,
              node,
              key,
              def,
              Object::toString,
              Float::parseFloat);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy