Interface ResourceId

  • 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 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