@Valid public class PartnerContainer extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PartnerContainer.Builder
Class implements builder to create a new instance of class PartnerContainer.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PartnerContainer()
Default constructor is only intended to be used for deserialization as many frameworks required that.
|
protected |
PartnerContainer(PartnerContainer.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToPartners(Collection<Partner> pPartners)
Method adds all passed objects to the association "partners".
|
void |
addToPartners(Partner pPartners)
Method adds the passed Partner object to the association "partners".
|
static PartnerContainer.Builder |
builder()
Method returns a new builder.
|
static PartnerContainer.Builder |
builder(PartnerContainer pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
void |
clearPartners()
Method removes all objects from the association "partners".
|
List<Partner> |
getPartners()
Method returns the association "partners".
|
void |
removeFromPartners(Partner pPartners)
Method removes the passed Partner object from the association "partners".
|
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 PartnerContainer()
protected PartnerContainer(PartnerContainer.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static PartnerContainer.Builder builder()
PartnerContainer.Builder New builder that can be used to create new PartnerContainer objects.public static PartnerContainer.Builder builder(PartnerContainer pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.PartnerContainer.Builder New builder that can be used to create new PartnerContainer objects. The method never
returns null.public List<Partner> getPartners()
public void addToPartners(Partner pPartners)
pPartners - Object that should be added to the association "partners". The parameter must not be null.public void addToPartners(Collection<Partner> pPartners)
pPartners - Collection with all objects that should be added to the association "partners". The parameter must
not be null.public void removeFromPartners(Partner pPartners)
pPartners - Object that should be removed from the association "partners". The parameter must not be null.public void clearPartners()
public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.