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.

    public interface ResourceId
    ResourceId provides a name and accuracy for a resource instance.
    • Method Detail

      • getName

        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 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 the accuracy of the measurement of the current resource request; null if the accuracy is unknown