Class ImmutableConstitution.Builder
java.lang.Object
org.immutables.value.processor.meta.ImmutableConstitution.Builder
- Enclosing class:
ImmutableConstitution
Builds instances of type
ImmutableConstitution.
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableConstitution.private static voidcheckNotIsSet(boolean isSet, String name) private voidprivate Stringprotoclass(Proto.Protoclass protoclass) Initializes the value for theprotoclassattribute.private boolean
-
Field Details
-
INIT_BIT_PROTOCLASS
private static final long INIT_BIT_PROTOCLASS- See Also:
-
initBits
private long initBits -
protoclass
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
protoclass
Initializes the value for theprotoclassattribute.- Parameters:
protoclass- The value for protoclass- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableConstitution.- Returns:
- An immutable instance of Constitution
- Throws:
IllegalStateException- if any required attributes are missing
-
protoclassIsSet
private boolean protoclassIsSet() -
checkNotIsSet
-
checkRequiredAttributes
private void checkRequiredAttributes() -
formatRequiredAttributesMessage
-