| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
Sortiment.builder() instead of private constructor to create new builder. |
protected |
Builder(Sortiment pObject)
Use
Sortiment.builder(Sortiment) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
Sortiment |
build()
Method creates a new instance of class Sortiment.
|
Sortiment |
buildValidated()
Method creates a new validated instance of class Sortiment.
|
Sortiment.Builder |
setProducts(Set<Product> pProducts)
Method sets association
products. |
protected Builder()
Sortiment.builder() instead of private constructor to create new builder.protected Builder(Sortiment pObject)
Sortiment.builder(Sortiment) instead of private constructor to create new builder.public Sortiment.Builder setProducts(Set<Product> pProducts)
products.pProducts - Collection to which products should be set.Sortiment.Builder Instance of this builder to support chaining setters. Method never returns null.public Sortiment build()
public Sortiment 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.