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 java.lang.ObjectBuilds instances of typeEnvironment. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Field Summary
Fields Modifier and Type Field Description private static longINIT_BIT_PROCESSINGprivate static longINIT_BIT_ROUNDprivate longinitBitsprivate javax.annotation.processing.ProcessingEnvironmentprocessingprivate Roundround
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableProto.Environmentbuild()Builds a newEnvironment.private static voidcheckNotIsSet(boolean isSet, java.lang.String name)private voidcheckRequiredAttributes()private java.lang.StringformatRequiredAttributesMessage()ImmutableProto.Environment.Builderprocessing(javax.annotation.processing.ProcessingEnvironment processing)Initializes the value for theprocessingattribute.private booleanprocessingIsSet()ImmutableProto.Environment.Builderround(Round round)Initializes the value for theroundattribute.private booleanroundIsSet()
-
-
-
Field Detail
-
INIT_BIT_PROCESSING
private static final long INIT_BIT_PROCESSING
- See Also:
- Constant Field Values
-
INIT_BIT_ROUND
private static final long INIT_BIT_ROUND
- See Also:
- Constant Field Values
-
initBits
private long initBits
-
processing
@Nullable private javax.annotation.processing.ProcessingEnvironment processing
-
round
@Nullable private Round round
-
-
Method Detail
-
processing
public final ImmutableProto.Environment.Builder processing(javax.annotation.processing.ProcessingEnvironment processing)
Initializes the value for theprocessingattribute.- Parameters:
processing- The value for processing- Returns:
thisbuilder for use in a chained invocation
-
round
public final ImmutableProto.Environment.Builder round(Round round)
Initializes the value for theroundattribute.- Parameters:
round- The value for round- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableProto.Environment build()
Builds a newEnvironment.- Returns:
- An immutable instance of Environment
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-
processingIsSet
private boolean processingIsSet()
-
roundIsSet
private boolean roundIsSet()
-
checkNotIsSet
private static void checkNotIsSet(boolean isSet, java.lang.String name)
-
checkRequiredAttributes
private void checkRequiredAttributes()
-
formatRequiredAttributesMessage
private java.lang.String formatRequiredAttributesMessage()
-
-