@Valid public class Sortiment extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Sortiment.Builder
Class implements builder to create a new instance of class
Sortiment. |
| Modifier | Constructor and Description |
|---|---|
protected |
Sortiment()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
|
protected |
Sortiment(Sortiment.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToProducts(Collection<Product> pProducts)
Method adds all passed objects to
products. |
void |
addToProducts(Product pProducts)
Method adds the passed object to
products. |
static Sortiment.Builder |
builder()
Method returns a new builder.
|
static Sortiment.Builder |
builder(Sortiment pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
void |
clearProducts()
Method removes all objects from
products. |
Set<Product> |
getProducts()
Method returns association
products. |
void |
removeFromProducts(Product pProducts)
Method removes the passed object from
products. |
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
protected Sortiment()
protected Sortiment(Sortiment.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static Sortiment.Builder builder()
Sortiment.Builder New builder that can be used to create new Sortiment objects.public static Sortiment.Builder builder(Sortiment pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.Sortiment.Builder New builder that can be used to create new Sortiment objects. The method never returns
null.public Set<Product> getProducts()
products.Set Value to which products is set. The method never returns null and the
returned collection is modifiable.public void addToProducts(Product pProducts)
products.pProducts - Object that should be added to products. The parameter must not be null.public void addToProducts(Collection<Product> pProducts)
products.pProducts - Collection with all objects that should be added to products. The parameter must not be
null.public void removeFromProducts(Product pProducts)
products.pProducts - Object that should be removed from products. The parameter must not be null.public void clearProducts()
products.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2023. All rights reserved.