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 a 
ConfigurationPropertySource
consisting of a name, value and optional
origin.- Since:
- 2.0.0
- Author:
- Phillip Webb, Madhura Bhave
- 
Constructor SummaryConstructorsConstructorDescriptionConfigurationProperty(ConfigurationPropertyName name, Object value, @Nullable Origin origin) 
- 
Method SummaryModifier and TypeMethodDescriptionintcompareTo(ConfigurationProperty other) booleangetName()Return the name of the configuration property.@Nullable OriginReturn the source origin ornullif the origin is not known.@Nullable ConfigurationPropertySourceReturn theConfigurationPropertySourcethat provided the property ornullif the source is unknown.getValue()Return the value of the configuration property.inthashCode()toString()
- 
Constructor Details- 
ConfigurationProperty
 
- 
- 
Method Details- 
getSourceReturn theConfigurationPropertySourcethat provided the property ornullif the source is unknown.- Returns:
- the configuration property source
- Since:
- 2.6.0
 
- 
getNameReturn the name of the configuration property.- Returns:
- the configuration property name
 
- 
getValueReturn the value of the configuration property.- Returns:
- the configuration property value
 
- 
getOriginDescription copied from interface:OriginProviderReturn the source origin ornullif the origin is not known.- Specified by:
- getOriginin interface- OriginProvider
- Returns:
- the origin or null
 
- 
equals
- 
hashCode
- 
toString
- 
compareTo- Specified by:
- compareToin interface- Comparable<ConfigurationProperty>
 
 
-