public static class ParentClass.Builder extends Object
| 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 the association "ibans".
|
ParentClass.Builder |
setParentAttribute(String pParentAttribute)
Method sets the attribute "parentAttribute".
|
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)
pParentAttribute - Value to which the attribute "parentAttribute" should be set.public ParentClass.Builder setIbans(Set<IBAN> pIbans)
pIbans - Collection with objects to which the association should be set.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 © 2022. All rights reserved.