@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 as many frameworks required that.
|
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 the association "products".
|
void |
addToProducts(Product pProducts)
Method adds the passed Product object to the association "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 the association "products".
|
Set<Product> |
getProducts()
Method returns the association "products".
|
void |
removeFromProducts(Product pProducts)
Method removes the passed Product object from the association "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()
public void addToProducts(Product pProducts)
pProducts - Object that should be added to the association "products". The parameter must not be null.public void addToProducts(Collection<Product> pProducts)
pProducts - Collection with all objects that should be added to the association "products". The parameter must
not be null.public void removeFromProducts(Product pProducts)
pProducts - Object that should be removed from the association "products". The parameter must not be null.public void clearProducts()
public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.