类 ValueHint
- java.lang.Object
- org.springframework.boot.configurationmetadata.ValueHint
- 所有已实现的接口:
Serializable
public class ValueHint extends Object implements Serializable
Hint for a value a given property may have. Provide the value and an optional description.- 从以下版本开始:
- 1.3.0
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 ValueHint()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getDescription()
A description of this value, if any.String
getShortDescription()
A single-line, single-sentence description of this hint, if any.Object
getValue()
Return the hint value.void
setDescription(String description)
void
setShortDescription(String shortDescription)
void
setValue(Object value)
String
toString()
构造器详细资料
ValueHint
public ValueHint()
方法详细资料
getDescription
public String getDescription()
A description of this value, if any. Can be multi-lines.- 返回:
- the description
- 另请参阅:
getShortDescription()
setDescription
public void setDescription(String description)
getShortDescription
public String getShortDescription()
A single-line, single-sentence description of this hint, if any.- 返回:
- the short description
- 另请参阅:
getDescription()
setShortDescription
public void setShortDescription(String shortDescription)