- 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 ResourceIdResourceId provides a name and accuracy for a resource instance.
String getName()Returns the name of the resource.
The name is opaque and depends on the type of the resource.
- the name for the resource, may be
default ResourceAccuracy getAccuracy()Returns the accuracy of the measurement for the current resource request.
- Implementation Note:
- the default behavior is to return
- Returns the accuracy of the measurement of the current resource
nullif the accuracy is unknown