public final class EndpointId
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static EndpointId |
fromPropertyValue(java.lang.String value)
Factory method to create a new
EndpointId from a property value. |
int |
hashCode() |
static EndpointId |
of(org.springframework.core.env.Environment environment,
java.lang.String value)
Factory method to create a new
EndpointId of the specified value. |
static EndpointId |
of(java.lang.String value)
Factory method to create a new
EndpointId of the specified value. |
java.lang.String |
toLowerCaseString()
Return a lower-case version of the endpoint ID.
|
java.lang.String |
toString() |
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toLowerCaseString()
public java.lang.String toString()
toString in class java.lang.Objectpublic static EndpointId of(java.lang.String value)
EndpointId of the specified value.value - the endpoint ID valueEndpointId instancepublic static EndpointId of(org.springframework.core.env.Environment environment, java.lang.String value)
EndpointId of the specified value. This
variant will respect the management.endpoints.migrate-legacy-names property
if it has been set in the Environment.environment - the Spring environmentvalue - the endpoint ID valueEndpointId instancepublic static EndpointId fromPropertyValue(java.lang.String value)
EndpointId from a property value. More
lenient than of(String) to allow for common "relaxed" property variants.value - the property value to convertEndpointId instance