Code example for Preferences

Methods: node

0
		} 
		return jPrefs.getLong(key, def);
	} 
 
	protected Preferences getMetadata() {
		return jPrefs.node(NODE_METADATA);
	} 
 
	@Override 
	public String getModifierString(String key) {
		return getMetadata().get(key, null);
	} 
 
	@Override 
	public boolean hasModifier(String key, String modifier) {
		String modifierString = getModifierString(key);
		if (modifierString == null) {
			return false; 
		} 
		return modifierString.indexOf(modifier) >= 0;
Experience pair programming with AI  Get Codota for Java