public final class ConfigurationProperty extends java.lang.Object implements OriginProvider, java.lang.Comparable<ConfigurationProperty>
ConfigurationPropertySource
consisting of a name
, value
and optional
origin
.Constructor and Description |
---|
ConfigurationProperty(ConfigurationPropertyName name,
java.lang.Object value,
Origin origin) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ConfigurationProperty other) |
boolean |
equals(java.lang.Object obj) |
ConfigurationPropertyName |
getName()
Return the name of the configuration property.
|
Origin |
getOrigin()
Return the source origin or
null if the origin is not known. |
ConfigurationPropertySource |
getSource()
Return the
ConfigurationPropertySource that provided the property or
null if the source is unknown. |
java.lang.Object |
getValue()
Return the value of the configuration property.
|
int |
hashCode() |
java.lang.String |
toString() |
public ConfigurationProperty(ConfigurationPropertyName name, java.lang.Object value, Origin origin)
public ConfigurationPropertySource getSource()
ConfigurationPropertySource
that provided the property or
null
if the source is unknown.public ConfigurationPropertyName getName()
public java.lang.Object getValue()
public Origin getOrigin()
OriginProvider
null
if the origin is not known.getOrigin
in interface OriginProvider
null
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(ConfigurationProperty other)
compareTo
in interface java.lang.Comparable<ConfigurationProperty>