Code example for Set

Methods: contains

0
	} 
 
	@Override 
	public boolean isReadOnly(String key) {
		Assert.notNull(key, "Key must not be null");
		return this.readOnly.contains(key);
	} 
 
	@Override 
	public String getValue(String key, String def) {
		Assert.notNull(key, "Key must not be null");
		String[] values = this.preferences.get(key);
		return (values != null && values.length > 0 ? values[0] : def);
	} 
 
	@Override 
	public String[] getValues(String key, String[] def) {
		Assert.notNull(key, "Key must not be null");
		String[] values = this.preferences.get(key);
		return (values != null && values.length > 0 ? values : def);
Contextual code suggestions in your IDE  Get Codota for Java