类 ConfigurationProperty
java.lang.Object
org.springframework.boot.context.properties.source.ConfigurationProperty
- 所有已实现的接口:
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.- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb, Madhura Bhave
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intcompareTo(ConfigurationProperty other) booleangetName()Return the name of the configuration property.Return the source origin ornullif the origin is not known.Return theConfigurationPropertySourcethat provided the property ornullif the source is unknown.getValue()Return the value of the configuration property.inthashCode()toString()
-
构造器详细资料
-
ConfigurationProperty
-
-
方法详细资料
-
getSource
Return theConfigurationPropertySourcethat provided the property ornullif the source is unknown.- 返回:
- the configuration property source
- 从以下版本开始:
- 2.6.0
-
getName
Return the name of the configuration property.- 返回:
- the configuration property name
-
getValue
Return the value of the configuration property.- 返回:
- the configuration property value
-
getOrigin
从接口复制的说明:OriginProviderReturn the source origin ornullif the origin is not known.- 指定者:
getOrigin在接口中OriginProvider- 返回:
- the origin or
null
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- 指定者:
compareTo在接口中Comparable<ConfigurationProperty>
-