Package com.yahoo.vespa.config
Class ConfigKey<CONFIGCLASS extends com.yahoo.config.ConfigInstance>
java.lang.Object
com.yahoo.vespa.config.ConfigKey<CONFIGCLASS>
- All Implemented Interfaces:
Comparable<ConfigKey<?>>
public class ConfigKey<CONFIGCLASS extends com.yahoo.config.ConfigInstance>
extends Object
implements Comparable<ConfigKey<?>>
Class for holding the key when doing cache look-ups and other management of config instances.
- Author:
- hmusum
-
Constructor Summary
ConstructorDescriptionConfigKey
(Class<CONFIGCLASS> clazz, String configIdString) Creates a new instance from the given class and configIdConstructs new key -
Method Summary
-
Constructor Details
-
ConfigKey
Constructs new key- Parameters:
name
- config definition nameconfigIdString
- Can be null.namespace
- namespace for this config definition
-
ConfigKey
Creates a new instance from the given class and configId- Parameters:
clazz
- Config classconfigIdString
- config id, can be null.
-
ConfigKey
-
-
Method Details
-
compareTo
Comparison sort order: namespace, name, configId.- Specified by:
compareTo
in interfaceComparable<CONFIGCLASS extends com.yahoo.config.ConfigInstance>
-
equals
-
hashCode
public int hashCode() -
getName
-
getConfigId
-
getNamespace
-
getConfigClass
-
toString
-
createFull
-