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

com.actelion.research.util.Prefs Maven / Gradle / Ivy

There is a newer version: 2024.11.2
Show newest version
package com.actelion.research.util;

import java.util.prefs.Preferences;

public class Prefs {
	private static final String PREFERENCES_ROOT = "org.openmolecules.openchemlib";

	public static Preferences get() {
		return java.util.prefs.Preferences.userRoot().node(PREFERENCES_ROOT);
		}

	public static String getString(String key, String defaultValue) {
		return get().get(key, defaultValue);
		}

	public static void setString(String key, String value) {
		get().put(key, value);
		}
	}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy