public interface ConfigKey<T>
Two ConfigKeys should be considered equal if they have the same FQN.
Modifier and Type | Interface and Description |
---|---|
static interface |
ConfigKey.HasConfigKey<T>
Interface for elements which want to be treated as a config key without actually being one
(e.g.
|
Modifier and Type | Method and Description |
---|---|
T |
getDefaultValue()
Returns the default value of the configuration parameter.
|
java.lang.String |
getDescription()
Returns the description of the configuration parameter, for display.
|
ConfigInheritance |
getInheritance() |
java.lang.String |
getName()
Returns the name of the configuration parameter, in a dot-separated namespace (FQN).
|
java.util.Collection<java.lang.String> |
getNameParts()
Returns the constituent parts of the configuration parameter name as a
Collection . |
java.lang.Class<? super T> |
getType()
Returns the type of the configuration parameter data.
|
java.lang.String |
getTypeName()
Returns the name of of the configuration parameter data type, as a
String . |
com.google.common.reflect.TypeToken<T> |
getTypeToken()
Returns the Guava TypeToken, including info on generics.
|
boolean |
hasDefaultValue()
Returns true if a default configuration value has been set.
|
boolean |
isReconfigurable() |
java.lang.String getDescription()
java.lang.String getName()
java.util.Collection<java.lang.String> getNameParts()
Collection
.com.google.common.reflect.TypeToken<T> getTypeToken()
java.lang.Class<? super T> getType()
This returns a "super" of T only in the case where T is generified,
and in such cases it returns the Class instance for the unadorned T ---
i.e. for List ---
this is of course because there is no actual Class
> instance.
java.lang.String getTypeName()
String
.T getDefaultValue()
boolean hasDefaultValue()
boolean isReconfigurable()
@Nullable ConfigInheritance getInheritance()
null
for the default in any context.