Class ImmutableProto.Environment.Builder
java.lang.Object
org.immutables.value.processor.meta.ImmutableProto.Environment.Builder
- Enclosing class:
ImmutableProto.Environment
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 Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate static final longprivate longprivate ProcessingEnvironmentprivate Round -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newEnvironment.private static voidcheckNotIsSet(boolean isSet, String name) private voidprivate Stringprocessing(ProcessingEnvironment processing) Initializes the value for theprocessingattribute.private booleanInitializes the value for theroundattribute.private boolean
-
Field Details
-
INIT_BIT_PROCESSING
private static final long INIT_BIT_PROCESSING- See Also:
-
INIT_BIT_ROUND
private static final long INIT_BIT_ROUND- See Also:
-
initBits
private long initBits -
processing
-
round
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
processing
Initializes the value for theprocessingattribute.- Parameters:
processing- The value for processing- Returns:
thisbuilder for use in a chained invocation
-
round
Initializes the value for theroundattribute.- Parameters:
round- The value for round- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newEnvironment.- Returns:
- An immutable instance of Environment
- Throws:
IllegalStateException- if any required attributes are missing
-
processingIsSet
private boolean processingIsSet() -
roundIsSet
private boolean roundIsSet() -
checkNotIsSet
-
checkRequiredAttributes
private void checkRequiredAttributes() -
formatRequiredAttributesMessage
-