public static class PartnerContainer.Builder extends Object
PartnerContainer.| 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 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)
partners.pPartners - Collection to which partners should be set.PartnerContainer.Builder Instance of this builder to support chaining setters. Method never returns null.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 © 2023. All rights reserved.