类 Deprecation
- java.lang.Object
- org.springframework.boot.configurationmetadata.Deprecation
- 所有已实现的接口:
Serializable
public class Deprecation extends Object implements Serializable
Indicate that a property is deprecated. Provide additional information about the deprecation.- 从以下版本开始:
- 1.3.0
- 另请参阅:
- 序列化表格
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
Deprecation.Level
Define the deprecation level.
构造器概要
构造器 构造器 说明 Deprecation()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Deprecation.Level
getLevel()
Define theDeprecation.Level
of deprecation.String
getReason()
A reason why the related property is deprecated, if any.String
getReplacement()
The full name of the property that replaces the related deprecated property, if any.void
setLevel(Deprecation.Level level)
void
setReason(String reason)
void
setReplacement(String replacement)
String
toString()
构造器详细资料
Deprecation
public Deprecation()
方法详细资料
getLevel
public Deprecation.Level getLevel()
Define theDeprecation.Level
of deprecation.- 返回:
- the deprecation level
setLevel
public void setLevel(Deprecation.Level level)
getReason
public String getReason()
A reason why the related property is deprecated, if any. Can be multi-lines.- 返回:
- the deprecation reason
getReplacement
public String getReplacement()
The full name of the property that replaces the related deprecated property, if any.- 返回:
- the replacement property name
setReplacement
public void setReplacement(String replacement)