EMPTY, END_DELIM, START_DELIM
Constructor and Description |
---|
CompositeKey() |
CompositeKey(CompositeKey parent,
ConfigKey child) |
CompositeKey(CompositeKey parent,
String child) |
CompositeKey(SimpleKey... parts) |
CompositeKey(String... parts) |
Modifier and Type | Method and Description |
---|---|
CompositeKey |
append(ConfigKey key)
Return a new key with the given key appended.
|
CompositeKey |
append(String... names)
Return a new key with the given segments appended.
|
boolean |
equals(Object obj) |
int |
hashCode() |
SimpleKey |
head()
Return the first segment of this key.
|
boolean |
isChildOf(ConfigKey possibleParent)
Determine if this key is a child of the argument.
|
String |
name()
String representation of this key's name.
|
String |
propertyName()
String representation of this key's name in property format.
|
void |
replace(int position,
String name) |
ConfigKey |
subkey(int offset)
Return the subkey of this key from a given offset.
|
String |
toString() |
public CompositeKey()
public CompositeKey(SimpleKey... parts)
public CompositeKey(String... parts)
public CompositeKey(CompositeKey parent, ConfigKey child)
public CompositeKey(CompositeKey parent, String child)
public boolean isChildOf(ConfigKey possibleParent)
ConfigKey
public SimpleKey head()
ConfigKey
public ConfigKey subkey(int offset)
ConfigKey
subkey
in interface ConfigKey
offset
- The number of segments offset from the head to subkey.ConfigKey.EMPTY
.public String name()
ConfigKey
public String propertyName()
ConfigKey
propertyName
in interface ConfigKey
public CompositeKey append(String... names)
ConfigKey
public CompositeKey append(ConfigKey key)
ConfigKey
Copyright © 2019 JBoss by Red Hat. All rights reserved.