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