Class ContentAnnotation

java.lang.Object
org.apache.juneau.http.annotation.ContentAnnotation

public class ContentAnnotation extends Object
Utility classes and methods for the @Content annotation.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • create

      Instantiates a new builder for this class.
      Returns:
      A new builder object.
    • create

      public static ContentAnnotation.Builder create(Class<?>... on)
      Instantiates a new builder for this class.
      Parameters:
      on - The targets this annotation applies to.
      Returns:
      A new builder object.
    • create

      public static ContentAnnotation.Builder create(String... on)
      Instantiates a new builder for this class.
      Parameters:
      on - The targets this annotation applies to.
      Returns:
      A new builder object.
    • empty

      public static boolean empty(Content a)
      Returns true if the specified annotation contains all default values.
      Parameters:
      a - The annotation to check.
      Returns:
      true if the specified annotation contains all default values.