public final class EndpointId extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static EndpointId |
fromPropertyValue(String value)
Factory method to create a new
EndpointId from a property value. |
int |
hashCode() |
static EndpointId |
of(Environment environment,
String value)
Factory method to create a new
EndpointId of the specified value. |
static EndpointId |
of(String value)
Factory method to create a new
EndpointId of the specified value. |
String |
toLowerCaseString()
Return a lower-case version of the endpoint ID.
|
String |
toString() |
public String toLowerCaseString()
public static EndpointId of(String value)
EndpointId
of the specified value.value
- the endpoint ID valueEndpointId
instancepublic static EndpointId of(Environment environment, 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(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
instanceCopyright © 2020 Pivotal Software, Inc.. All rights reserved.