Class ImmutableProto.Environment.Builder

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

@NotThreadSafe public static final class ImmutableProto.Environment.Builder extends Object
Builds instances of type Environment. 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 ImmutableProto.Environment.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 ImmutableProto.Environment.Builder round(Round round)
      Initializes the value for the round attribute.
      Parameters:
      round - The value for round
      Returns:
      this builder for use in a chained invocation
    • build

      Builds a new Environment.
      Returns:
      An immutable instance of Environment
      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()