Class ImmutableRound.Builder

java.lang.Object
org.immutables.value.processor.meta.ImmutableRound.Builder
Enclosing class:
ImmutableRound

@NotThreadSafe public static final class ImmutableRound.Builder extends Object
Builds instances of type ImmutableRound. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Field Details

  • Constructor Details

    • Builder

      private Builder()
  • Method Details

    • processing

      public final ImmutableRound.Builder processing(ProcessingEnvironment processing)
      Initializes the value for the processing attribute.
      Parameters:
      processing - The value for processing
      Returns:
      this builder for use in a chained invocation
    • round

      public final ImmutableRound.Builder round(RoundEnvironment round)
      Initializes the value for the round attribute.
      Parameters:
      round - The value for round
      Returns:
      this builder for use in a chained invocation
    • addAnnotations

      public final ImmutableRound.Builder addAnnotations(TypeElement element)
      Adds one element to annotations set.
      Parameters:
      element - A annotations element
      Returns:
      this builder for use in a chained invocation
    • addAnnotations

      public final ImmutableRound.Builder addAnnotations(TypeElement... elements)
      Adds elements to annotations set.
      Parameters:
      elements - An array of annotations elements
      Returns:
      this builder for use in a chained invocation
    • addAllAnnotations

      public final ImmutableRound.Builder addAllAnnotations(Iterable<? extends TypeElement> elements)
      Adds elements to annotations set.
      Parameters:
      elements - An iterable of annotations elements
      Returns:
      this builder for use in a chained invocation
    • addCustomImmutableAnnotations

      public final ImmutableRound.Builder addCustomImmutableAnnotations(String element)
      Adds one element to customImmutableAnnotations set.
      Parameters:
      element - A customImmutableAnnotations element
      Returns:
      this builder for use in a chained invocation
    • addCustomImmutableAnnotations

      public final ImmutableRound.Builder addCustomImmutableAnnotations(String... elements)
      Adds elements to customImmutableAnnotations set.
      Parameters:
      elements - An array of customImmutableAnnotations elements
      Returns:
      this builder for use in a chained invocation
    • addAllCustomImmutableAnnotations

      public final ImmutableRound.Builder addAllCustomImmutableAnnotations(Iterable<String> elements)
      Adds elements to customImmutableAnnotations set.
      Parameters:
      elements - An iterable of customImmutableAnnotations elements
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableRound build()
      Builds a new ImmutableRound.
      Returns:
      An immutable instance of Round
      Throws:
      IllegalStateException - if any required attributes are missing
    • processingIsSet

      private boolean processingIsSet()
    • roundIsSet

      private boolean roundIsSet()
    • checkNotIsSet

      private static void checkNotIsSet(boolean isSet, String name)
    • checkRequiredAttributes

      private void checkRequiredAttributes()
    • formatRequiredAttributesMessage

      private String formatRequiredAttributesMessage()