public static class PartnerContainer.Builder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
PartnerContainer.builder() instead of private constructor to create new builder. |
protected |
Builder(PartnerContainer pObject)
Use
PartnerContainer.builder(PartnerContainer) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
PartnerContainer |
build()
Method creates a new instance of class PartnerContainer.
|
PartnerContainer |
buildValidated()
Method creates a new validated instance of class PartnerContainer.
|
PartnerContainer.Builder |
setPartners(List<Partner> pPartners)
Method sets the association "partners".
|
protected Builder()
PartnerContainer.builder() instead of private constructor to create new builder.protected Builder(PartnerContainer pObject)
PartnerContainer.builder(PartnerContainer) instead of private constructor to create new builder.public PartnerContainer.Builder setPartners(List<Partner> pPartners)
pPartners - Collection with objects to which the association should be set.public PartnerContainer build()
public PartnerContainer 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.