Annotation Interface Resource.Annotations

Enclosing class:
Resource

@Target(ANNOTATION_TYPE) @Retention(RUNTIME) public static @interface Resource.Annotations
Nested annotation for resource metadata annotations.

These provide hints to clients about the resource's audience, modification time, and priority.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The intended audience for this resource.
    The last modification timestamp in ISO 8601 format.
    double
    The priority of this resource.
  • Element Details

    • audience

      Role[] audience
      The intended audience for this resource.
      Returns:
      the intended audience roles, or an empty array to indicate no value
      Default:
      {}
    • lastModified

      String lastModified
      The last modification timestamp in ISO 8601 format.
      Returns:
      the last modified timestamp, or an empty string to indicate no value
      Default:
      ""
    • priority

      double priority
      The priority of this resource.

      1.0 represents the highest priority, and 0.0 represents the lowest priority.

      Returns:
      the priority value between 0.0 and 1.0, or -1 to indicate no value
      Default:
      -1.0