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() |
Origin |
getOrigin()
Return the source origin or
null if the origin is not known. |
java.lang.Object |
getValue() |
int |
hashCode() |
java.lang.String |
toString() |
public ConfigurationProperty(ConfigurationPropertyName name, java.lang.Object value, Origin origin)
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>