public abstract class AbstractQueryConfig extends Object
This class is the base of QueryConfigHandler and FieldConfig.
It has operations to set, unset and get configuration values.
Each configuration is is a key->value pair. The key should be an unique
ConfigurationKey instance and it also holds the value's type.
ConfigurationKey| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(ConfigurationKey<T> key)
Returns the value held by the given key.
|
<T> boolean |
has(ConfigurationKey<T> key)
Returns true if there is a value set with the given key, otherwise false.
|
<T> void |
set(ConfigurationKey<T> key,
T value)
Sets a key and its value.
|
<T> boolean |
unset(ConfigurationKey<T> key)
Unsets the given key and its value.
|
public <T> T get(ConfigurationKey<T> key)
T - the value's typekey - the key, cannot be nullpublic <T> boolean has(ConfigurationKey<T> key)
T - the value's typekey - the key, cannot be nullpublic <T> void set(ConfigurationKey<T> key, T value)
T - the value's typekey - the key, cannot be nullvalue - value to setpublic <T> boolean unset(ConfigurationKey<T> key)
T - the value's typekey - the keyCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.