类 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
compareTo
(ConfigurationProperty other) boolean
getName()
Return the name of the configuration property.Return the source origin ornull
if the origin is not known.Return theConfigurationPropertySource
that provided the property ornull
if the source is unknown.getValue()
Return the value of the configuration property.int
hashCode()
toString()
-
构造器详细资料
-
ConfigurationProperty
-
-
方法详细资料
-
getSource
Return theConfigurationPropertySource
that provided the property ornull
if 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
从接口复制的说明:OriginProvider
Return the source origin ornull
if the origin is not known.- 指定者:
getOrigin
在接口中OriginProvider
- 返回:
- the origin or
null
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- 指定者:
compareTo
在接口中Comparable<ConfigurationProperty>
-