类 EndpointId
- java.lang.Object
- org.springframework.boot.actuate.endpoint.EndpointId
public final class EndpointId extends Object
An identifier for an actuator endpoint. Endpoint IDs may contain only letters, numbers'.'and'-'. They must begin with a lower-case letter. Case and syntax characters are ignored when comparing endpoint IDs.- 从以下版本开始:
- 2.0.6
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(Object obj)static EndpointIdfromPropertyValue(String value)Factory method to create a newEndpointIdfrom a property value.inthashCode()static EndpointIdof(String value)Factory method to create a newEndpointIdof the specified value.StringtoLowerCaseString()Return a lower-case version of the endpoint ID.StringtoString()
方法详细资料
toLowerCaseString
public String toLowerCaseString()
Return a lower-case version of the endpoint ID.- 返回:
- the lower-case endpoint ID
of
public static EndpointId of(String value)
Factory method to create a newEndpointIdof the specified value.- 参数:
value- the endpoint ID value- 返回:
- an
EndpointIdinstance
fromPropertyValue
public static EndpointId fromPropertyValue(String value)
Factory method to create a newEndpointIdfrom a property value. More lenient thanof(String)to allow for common "relaxed" property variants.- 参数:
value- the property value to convert- 返回:
- an
EndpointIdinstance