Interface Annotations.Builder

Enclosing interface:
Annotations

public static interface Annotations.Builder
Builder for Annotations.
  • Method Details

    • audience

      Annotations.Builder audience(@Nullable Iterable<? extends Role> elements)
      Sets the intended audience.
      Parameters:
      elements - the audience roles, or null
      Returns:
      this builder
    • audience

      default Annotations.Builder audience(Role... roles)
      Sets the intended audience.
      Parameters:
      roles - the audience roles
      Returns:
      this builder
    • priority

      Annotations.Builder priority(@Nullable Double priority)
      Sets the ordering hint.
      Parameters:
      priority - the priority, or null
      Returns:
      this builder
    • lastModified

      Annotations.Builder lastModified(@Nullable String lastModified)
      Sets the last-modified timestamp.
      Parameters:
      lastModified - the timestamp, or null
      Returns:
      this builder
    • build

      Annotations build()
      Builds the annotations.
      Returns:
      the new annotations