public static class ChildB.Builder extends ParentClass.Builder
ChildB.| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
ChildB.builder() instead of private constructor to create new builder. |
protected |
Builder(ChildB pObject)
Use
ChildB.builder(ChildB) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
ChildB |
build()
Method creates a new instance of class ChildB.
|
ChildB |
buildValidated()
Method creates a new validated instance of class ChildB.
|
ChildB.Builder |
setChildBAttribute(boolean[] pChildBAttribute)
Method sets attribute
childBAttribute. |
ChildB.Builder |
setComposition(Set<ParentClass> pComposition)
Method sets association
composition. |
ChildB.Builder |
setIbans(Set<IBAN> pIbans)
Method sets association
ParentClass.ibans. |
ChildB.Builder |
setLegacyBankAccounts(List<BankAccount> pLegacyBankAccounts)
Deprecated.
|
ChildB.Builder |
setParentAttribute(String pParentAttribute)
Method sets attribute
ParentClass.parentAttribute. |
ChildB.Builder |
setTheBankAccount(BankAccount pTheBankAccount)
Deprecated.
|
protected Builder()
ChildB.builder() instead of private constructor to create new builder.protected Builder(ChildB pObject)
ChildB.builder(ChildB) instead of private constructor to create new builder.public ChildB.Builder setParentAttribute(String pParentAttribute)
ParentClass.parentAttribute.setParentAttribute in class ParentClass.BuilderpParentAttribute - Value to which ParentClass.parentAttribute should be set.ChildB.Builder Instance of this builder to support chaining setters. Method never returns null.public ChildB.Builder setIbans(Set<IBAN> pIbans)
ParentClass.ibans.setIbans in class ParentClass.BuilderpIbans - Collection to which ParentClass.ibans should be set.ChildB.Builder Instance of this builder to support chaining setters. Method never returns null.@Deprecated public ChildB.Builder setTheBankAccount(BankAccount pTheBankAccount)
ParentClass.theBankAccount.setTheBankAccount in class ParentClass.BuilderpTheBankAccount - Value to which ParentClass.theBankAccount should be set.ChildB.Builder Instance of this builder to support chaining setters. Method never returns null.@Deprecated public ChildB.Builder setLegacyBankAccounts(List<BankAccount> pLegacyBankAccounts)
ParentClass.legacyBankAccounts.setLegacyBankAccounts in class ParentClass.BuilderpLegacyBankAccounts - Collection to which ParentClass.legacyBankAccounts should be set.ChildB.Builder Instance of this builder to support chaining setters. Method never returns null.public ChildB.Builder setChildBAttribute(boolean[] pChildBAttribute)
childBAttribute.pChildBAttribute - Value to which childBAttribute should be set.ChildB.Builder Instance of this builder to support chaining setters. Method never returns null.public ChildB.Builder setComposition(Set<ParentClass> pComposition)
composition.pComposition - Collection to which composition should be set.ChildB.Builder Instance of this builder to support chaining setters. Method never returns null.public ChildB build()
build in class ParentClass.Builderpublic ChildB buildValidated() throws javax.validation.ConstraintViolationException
buildValidated in class ParentClass.Builderjavax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2023. All rights reserved.