Class ImmutableAttributeBuilderThirdPartyModel.Builder

  • Enclosing class:
    ImmutableAttributeBuilderThirdPartyModel

    @NotThreadSafe
    public static final class ImmutableAttributeBuilderThirdPartyModel.Builder
    extends java.lang.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 Detail

      • INIT_BIT_BUILDER_METHOD

        private static final long INIT_BIT_BUILDER_METHOD
        See Also:
        Constant Field Values
      • initBits

        private long initBits
      • buildMethod

        @Nullable
        private javax.lang.model.element.ExecutableElement buildMethod
      • copyMethod

        @Nullable
        private javax.lang.model.element.ExecutableElement copyMethod
      • builderMethod

        @Nullable
        private javax.lang.model.element.ExecutableElement builderMethod
      • builderType

        @Nullable
        private javax.lang.model.element.TypeElement builderType
    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • buildMethod

        public final ImmutableAttributeBuilderThirdPartyModel.Builder buildMethod​(javax.lang.model.element.ExecutableElement buildMethod)
        Initializes the value for the buildMethod attribute.
        Parameters:
        buildMethod - The value for buildMethod
        Returns:
        this builder for use in a chained invocation
      • copyMethod

        public final ImmutableAttributeBuilderThirdPartyModel.Builder copyMethod​(javax.lang.model.element.ExecutableElement copyMethod)
        Initializes the value for the copyMethod attribute.
        Parameters:
        copyMethod - The value for copyMethod
        Returns:
        this builder for use in a chained invocation
      • builderMethod

        public final ImmutableAttributeBuilderThirdPartyModel.Builder builderMethod​(javax.lang.model.element.ExecutableElement builderMethod)
        Initializes the value for the builderMethod attribute.
        Parameters:
        builderMethod - The value for builderMethod
        Returns:
        this builder for use in a chained invocation
      • builderType

        public final ImmutableAttributeBuilderThirdPartyModel.Builder builderType​(javax.lang.model.element.TypeElement builderType)
        Initializes the value for the builderType attribute.
        Parameters:
        builderType - The value for builderType
        Returns:
        this builder for use in a chained invocation
      • buildMethodIsSet

        private boolean buildMethodIsSet()
      • copyMethodIsSet

        private boolean copyMethodIsSet()
      • builderMethodIsSet

        private boolean builderMethodIsSet()
      • builderTypeIsSet

        private boolean builderTypeIsSet()
      • checkNotIsSet

        private static void checkNotIsSet​(boolean isSet,
                                          java.lang.String name)
      • checkRequiredAttributes

        private void checkRequiredAttributes()
      • formatRequiredAttributesMessage

        private java.lang.String formatRequiredAttributesMessage()