@Valid public class ChildB extends ParentClass
| Modifier and Type | Class and Description |
|---|---|
static class |
ChildB.Builder
Class implements builder to create a new instance of class
ChildB. |
| Modifier | Constructor and Description |
|---|---|
protected |
ChildB()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
|
protected |
ChildB(ChildB.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToComposition(Collection<ParentClass> pComposition)
Method adds all passed objects to
composition. |
void |
addToComposition(ParentClass pComposition)
Method adds the passed object to
composition. |
static ChildB.Builder |
builder()
Method returns a new builder.
|
static ChildB.Builder |
builder(ChildB pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
static ChildB.Builder |
builder(String pParentAttribute)
Method creates a new builder and initializes it with the passed attributes.
|
void |
clearComposition()
Method removes all objects from
composition. |
boolean[] |
getChildBAttribute()
Method returns attribute
childBAttribute. |
Set<ParentClass> |
getComposition()
Method returns association
composition. |
void |
removeFromComposition(ParentClass pComposition)
Method removes the passed object from
composition. |
void |
setChildBAttribute(boolean[] pChildBAttribute)
Method sets attribute
childBAttribute. |
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.
|
addToIbans, addToIbans, addToLegacyBankAccounts, addToLegacyBankAccounts, builder, clearIbans, clearLegacyBankAccounts, getIbans, getLegacyBankAccounts, getParentAttribute, getTheBankAccount, removeFromIbans, removeFromLegacyBankAccounts, setParentAttribute, setTheBankAccount, unsetTheBankAccountprotected ChildB()
protected ChildB(ChildB.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static ChildB.Builder builder()
ChildB.Builder New builder that can be used to create new ChildB objects.public static ChildB.Builder builder(ChildB pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.ChildB.Builder New builder that can be used to create new ChildB objects. The method never returns null.public static ChildB.Builder builder(String pParentAttribute)
public boolean[] getChildBAttribute()
childBAttribute.childBAttribute is set.public void setChildBAttribute(boolean[] pChildBAttribute)
childBAttribute.pChildBAttribute - Value to which childBAttribute should be set.public Set<ParentClass> getComposition()
composition.Set Value to which composition is set. The method never returns null and the
returned collection is modifiable.public void addToComposition(ParentClass pComposition)
composition.pComposition - Object that should be added to composition. The parameter must not be null.public void addToComposition(Collection<ParentClass> pComposition)
composition.pComposition - Collection with all objects that should be added to composition. The parameter must
not be null.public void removeFromComposition(ParentClass pComposition)
composition.pComposition - Object that should be removed from composition. The parameter must not be null.public void clearComposition()
composition.public StringBuilder toStringBuilder(String pIndent)
toStringBuilder in class ParentClassStringBuilder StringBuilder representing this object. The method never returns null.public String toString()
toString in class ParentClassString String representation of this object. The method never returns null.Copyright © 2023. All rights reserved.