-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ResourceId
ResourceId provides a name and accuracy for a resource instance.- Since:
- 8u40
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ResourceAccuracy
getAccuracy()
Returns the accuracy of the measurement for the current resource request.String
getName()
Returns the name of the resource.
-
-
-
Method Detail
-
getName
String getName()
Returns the name of the resource.The name is opaque and depends on the type of the resource.
- Returns:
- the name for the resource, may be
null
-
getAccuracy
default ResourceAccuracy getAccuracy()
Returns the accuracy of the measurement for the current resource request.- Implementation Note:
- the default behavior is to return
null
- Returns:
- Returns the accuracy of the measurement of the current resource
request;
null
if the accuracy is unknown
-
-