Class ImmutableAttributeBuilderThirdPartyModel.Builder
java.lang.Object
org.immutables.value.processor.meta.ImmutableAttributeBuilderThirdPartyModel.Builder
- Enclosing class:
ImmutableAttributeBuilderThirdPartyModel
@NotThreadSafe
public static final class ImmutableAttributeBuilderThirdPartyModel.Builder
extends Object
Builds instances of type
ImmutableAttributeBuilderThirdPartyModel.
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 ExecutableElementprivate TypeElementprivate ExecutableElementprivate ExecutableElementprivate static final longprivate static final longprivate static final longprivate static final longprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableAttributeBuilderThirdPartyModel.builderMethod(ExecutableElement builderMethod) Initializes the value for thebuilderMethodattribute.private booleanbuilderType(TypeElement builderType) Initializes the value for thebuilderTypeattribute.private booleanbuildMethod(ExecutableElement buildMethod) Initializes the value for thebuildMethodattribute.private booleanprivate static voidcheckNotIsSet(boolean isSet, String name) private voidcopyMethod(ExecutableElement copyMethod) Initializes the value for thecopyMethodattribute.private booleanprivate String
-
Field Details
-
INIT_BIT_BUILD_METHOD
private static final long INIT_BIT_BUILD_METHOD- See Also:
-
INIT_BIT_COPY_METHOD
private static final long INIT_BIT_COPY_METHOD- See Also:
-
INIT_BIT_BUILDER_METHOD
private static final long INIT_BIT_BUILDER_METHOD- See Also:
-
INIT_BIT_BUILDER_TYPE
private static final long INIT_BIT_BUILDER_TYPE- See Also:
-
initBits
private long initBits -
buildMethod
-
copyMethod
-
builderMethod
-
builderType
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
buildMethod
public final ImmutableAttributeBuilderThirdPartyModel.Builder buildMethod(ExecutableElement buildMethod) Initializes the value for thebuildMethodattribute.- Parameters:
buildMethod- The value for buildMethod- Returns:
thisbuilder for use in a chained invocation
-
copyMethod
public final ImmutableAttributeBuilderThirdPartyModel.Builder copyMethod(ExecutableElement copyMethod) Initializes the value for thecopyMethodattribute.- Parameters:
copyMethod- The value for copyMethod- Returns:
thisbuilder for use in a chained invocation
-
builderMethod
public final ImmutableAttributeBuilderThirdPartyModel.Builder builderMethod(ExecutableElement builderMethod) Initializes the value for thebuilderMethodattribute.- Parameters:
builderMethod- The value for builderMethod- Returns:
thisbuilder for use in a chained invocation
-
builderType
Initializes the value for thebuilderTypeattribute.- Parameters:
builderType- The value for builderType- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableAttributeBuilderThirdPartyModel.- Returns:
- An immutable instance of AttributeBuilderThirdPartyModel
- Throws:
IllegalStateException- if any required attributes are missing
-
buildMethodIsSet
private boolean buildMethodIsSet() -
copyMethodIsSet
private boolean copyMethodIsSet() -
builderMethodIsSet
private boolean builderMethodIsSet() -
builderTypeIsSet
private boolean builderTypeIsSet() -
checkNotIsSet
-
checkRequiredAttributes
private void checkRequiredAttributes() -
formatRequiredAttributesMessage
-