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