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

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

package cdc.util.prefs.defaults;

import java.util.prefs.Preferences;

import cdc.util.prefs.AbstractPreference;

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy