- GeneratedTransferObjectImpl(final Type parent, final String packageName, final String name,
- final String comment, final List<AnnotationTypeBuilder> annotationBuilders, final boolean isAbstract,
- final GeneratedTransferObject extendsType, final List<Type> implementsTypes,
- final List<GeneratedTypeBuilder> enclosedGenTypeBuilders,
- final List<GeneratedTOBuilder> enclosedGenTOBuilders, final List<Constant> constants,
- final List<EnumBuilder> enumBuilders, final List<MethodSignatureBuilder> methodBuilders,
- final List<GeneratedPropertyBuilder> propBuilders, final List<GeneratedPropertyBuilder> equalsBuilders,
- final List<GeneratedPropertyBuilder> hashCodeBuilders,
- final List<GeneratedPropertyBuilder> stringBuilders, final boolean isUnionType) {
- super(parent, packageName, name, comment, annotationBuilders, isAbstract, implementsTypes,
- enclosedGenTypeBuilders, enclosedGenTOBuilders, enumBuilders, constants, methodBuilders);
- this.extendsType = extendsType;
- this.properties = toUnmodifiableProperties(propBuilders);
- this.equalsProperties = toUnmodifiableProperties(equalsBuilders);
- this.hashCodeProperties = toUnmodifiableProperties(hashCodeBuilders);
- this.stringProperties = toUnmodifiableProperties(stringBuilders);
- this.isUnionType = isUnionType;
+ public GeneratedTransferObjectImpl(GeneratedTOBuilderImpl builder) {
+ super(builder);
+ this.extendsType = builder.extendsType;
+ this.equalsProperties = toUnmodifiableProperties(builder.equalsProperties);
+ this.hashCodeProperties = toUnmodifiableProperties(builder.hashProperties);
+ this.stringProperties = toUnmodifiableProperties(builder.toStringProperties);
+ this.isTypedef = builder.isTypedef;
+ this.isUnionType = builder.isUnionType;
+ this.isUnionTypeBuilder = builder.isUnionTypeBuilder;
+ this.restrictions = builder.restrictions;
+ if (builder.SUID == null) {
+ this.SUID = null;
+ } else {
+ this.SUID = builder.SUID.toInstance(GeneratedTransferObjectImpl.this);
+ }