public class ConfigSet extends Object implements ConfigSource
ConfigInstance
sModifier and Type | Field and Description |
---|---|
private Map<com.yahoo.vespa.config.ConfigKey<?>,com.yahoo.config.ConfigInstance.Builder> |
configs |
Constructor and Description |
---|
ConfigSet() |
Modifier and Type | Method and Description |
---|---|
void |
addBuilder(String configId,
com.yahoo.config.ConfigInstance.Builder builder)
Inserts a new builder in this set.
|
boolean |
contains(com.yahoo.vespa.config.ConfigKey<?> key)
Returns true if this set contains a config instance matching the given key
|
com.yahoo.config.ConfigInstance.Builder |
get(com.yahoo.vespa.config.ConfigKey<?> key)
Returns a Builder matching the given key, or null if no match
|
String |
toString() |
private final Map<com.yahoo.vespa.config.ConfigKey<?>,com.yahoo.config.ConfigInstance.Builder> configs
public void addBuilder(String configId, com.yahoo.config.ConfigInstance.Builder builder)
configId
- The config id for this builder.builder
- The builder that will produce config for the particular config id.public com.yahoo.config.ConfigInstance.Builder get(com.yahoo.vespa.config.ConfigKey<?> key)
key
- a config key to get a Builder forpublic boolean contains(com.yahoo.vespa.config.ConfigKey<?> key)
key
- a config keyCopyright © 2018. All rights reserved.