Class ConfigurationProperty
- java.lang.Object
- org.springframework.boot.context.properties.source.ConfigurationProperty
- All Implemented Interfaces:
Comparable<ConfigurationProperty>
,OriginProvider
public final class ConfigurationProperty extends Object implements OriginProvider, Comparable<ConfigurationProperty>
A single configuration property obtained from aConfigurationPropertySource
consisting of aname
,value
and optionalorigin
.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description ConfigurationProperty(ConfigurationPropertyName name, Object value, Origin origin)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ConfigurationProperty other)
boolean
equals(Object obj)
ConfigurationPropertyName
getName()
Origin
getOrigin()
Return the source origin ornull
if the origin is not known.Object
getValue()
int
hashCode()
String
toString()
Constructor Detail
ConfigurationProperty
public ConfigurationProperty(ConfigurationPropertyName name, Object value, Origin origin)
Method Detail
getName
public ConfigurationPropertyName getName()
getOrigin
public Origin getOrigin()
Description copied from interface:OriginProvider
Return the source origin ornull
if the origin is not known.- Specified by:
getOrigin
in interfaceOriginProvider
- Returns:
- the origin or
null
compareTo
public int compareTo(ConfigurationProperty other)
- Specified by:
compareTo
in interfaceComparable<ConfigurationProperty>