Package io.smallrye.config
Class PropertyName
java.lang.Object
io.smallrye.config.PropertyName
A configuration name.
While a configuration name is represented as a String, the equality rules are different, due to the
use of star (*), to match a segment in the name. A segment is a part of the configuration name
separated by a dot (.). For example:
foo.barmatchesfoo.*foo.bar.bazmatchesfoo.*.bazfoo."bar.baz"matchesfoo.*foo.bar[0]matchesfoo.bar[*]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic booleanCompares both arguments usingPropertyNameequals semantics for the specified regions.static booleanCompares both arguments usingPropertyNameequals semantics.getName()inthashCode()static PropertyNametoString()
-
Constructor Details
-
PropertyName
-
-
Method Details
-
getName
-
equals
-
equals
Compares both arguments usingPropertyNameequals semantics.- Parameters:
name- a String with a configuration name.other- a String with another configuration name.- Returns:
trueif both arguments match thePropertyNamesemantics,falseotherwise.
-
equals
Compares both arguments usingPropertyNameequals semantics for the specified regions.- Parameters:
name- a String with a configuration name.offset- the starting offset of the subregion in the String name.len- the number of characters to compare in the String name.other- a String with another configuration name.ooffset- the starting offset of the subregion in the String other.olen- the number of characters to compare in the String other.- Returns:
trueif both arguments match thePropertyNamesemantics,falseotherwise.
-
hashCode
public int hashCode() -
toString
-
name
-