Class Sortiment.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.Sortiment.Builder
-
- Enclosing class:
- Sortiment
public static class Sortiment.Builder extends java.lang.ObjectClass implements builder to create a new instance of classSortiment.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseSortiment.builder()instead of private constructor to create new builder.protectedBuilder(Sortiment pObject)UseSortiment.builder(Sortiment)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sortimentbuild()Method creates a new instance of class Sortiment.SortimentbuildValidated()Method creates a new validated instance of class Sortiment.Sortiment.BuildersetProducts(java.util.Set<Product> pProducts)Method sets associationproducts.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseSortiment.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(Sortiment pObject)
UseSortiment.builder(Sortiment)instead of private constructor to create new builder.
-
-
Method Detail
-
setProducts
public Sortiment.Builder setProducts(java.util.Set<Product> pProducts)
Method sets associationproducts.- Parameters:
pProducts- Collection to whichproductsshould be set.- Returns:
Sortiment.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public Sortiment build()
Method creates a new instance of class Sortiment. The object will be initialized with the values of the builder.- Returns:
- Sortiment Created object. The method never returns null.
-
buildValidated
public Sortiment buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class Sortiment. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- Sortiment Created and validated object. The method never returns null.
- Throws:
javax.validation.ConstraintViolationException- in case that one or more validations for the created object failed.
-
-