Class ConfigKeyGroup
- java.lang.Object
-
- org.apache.bookkeeper.common.conf.ConfigKeyGroup
-
@Public public class ConfigKeyGroup extends java.lang.Object
Define a group of configuration settings.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigKeyGroup.ConfigKeyGroupBuilder
-
Field Summary
Fields Modifier and Type Field Description static ConfigKeyGroupDEFAULTThe default key group.static java.util.Comparator<ConfigKeyGroup>ORDERINGOrdering the key groups in a configuration.
-
Constructor Summary
Constructors Constructor Description ConfigKeyGroup(java.lang.String name, java.lang.String description, java.util.List<java.lang.String> children, int order)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConfigKeyGroup.ConfigKeyGroupBuilderbuilder(java.lang.String name)Create a config key group of name.java.util.List<java.lang.String>children()The list of sub key-groups of this key group.ConfigKeyGroupchildren(java.util.List<java.lang.String> children)The list of sub key-groups of this key group.java.lang.Stringdescription()Description of the key group.ConfigKeyGroupdescription(java.lang.String description)Description of the key group.booleanequals(java.lang.Object o)inthashCode()static ConfigKeyGroup.ConfigKeyGroupBuilderinternalBuilder()java.lang.Stringname()Name of the key group.ConfigKeyGroupname(java.lang.String name)Name of the key group.intorder()The order of the key-group in a configuration.ConfigKeyGrouporder(int order)The order of the key-group in a configuration.java.lang.StringtoString()
-
-
-
Field Detail
-
ORDERING
public static final java.util.Comparator<ConfigKeyGroup> ORDERING
Ordering the key groups in a configuration.
-
DEFAULT
public static final ConfigKeyGroup DEFAULT
The default key group.
-
-
Method Detail
-
builder
public static ConfigKeyGroup.ConfigKeyGroupBuilder builder(java.lang.String name)
Create a config key group of name.- Parameters:
name- key group name- Returns:
- key group builder
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
internalBuilder
public static ConfigKeyGroup.ConfigKeyGroupBuilder internalBuilder()
-
name
public java.lang.String name()
Name of the key group.
-
description
public java.lang.String description()
Description of the key group.
-
children
public java.util.List<java.lang.String> children()
The list of sub key-groups of this key group.
-
order
public int order()
The order of the key-group in a configuration.
-
name
public ConfigKeyGroup name(java.lang.String name)
Name of the key group.- Returns:
this.
-
description
public ConfigKeyGroup description(java.lang.String description)
Description of the key group.- Returns:
this.
-
children
public ConfigKeyGroup children(java.util.List<java.lang.String> children)
The list of sub key-groups of this key group.- Returns:
this.
-
order
public ConfigKeyGroup order(int order)
The order of the key-group in a configuration.- Returns:
this.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-