@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 as many frameworks required that.
|
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 the association "composition". the composition
|
void |
addToComposition(ParentClass pComposition)
Method adds the passed ParentClass object to the association "composition". the 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.
|
void |
clearComposition()
Method removes all objects from the association "composition". the composition
|
boolean[] |
getChildBAttribute()
Method returns the attribute "childBAttribute".
|
Set<ParentClass> |
getComposition()
Method returns the association "composition". the composition
|
void |
removeFromComposition(ParentClass pComposition)
Method removes the passed ParentClass object from the association "composition". the composition
|
void |
setChildBAttribute(boolean[] pChildBAttribute)
Method sets the 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, builder, clearIbans, getIbans, getParentAttribute, removeFromIbans, setParentAttributeprotected 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 boolean[] getChildBAttribute()
public void setChildBAttribute(boolean[] pChildBAttribute)
pChildBAttribute - Value to which the attribute "childBAttribute" should be set.public Set<ParentClass> getComposition()
public void addToComposition(ParentClass pComposition)
pComposition - Object that should be added to the association "composition". The parameter must not be null.public void addToComposition(Collection<ParentClass> pComposition)
pComposition - Collection with all objects that should be added to the association "composition". The
parameter must not be null.public void removeFromComposition(ParentClass pComposition)
pComposition - Object that should be removed from the association "composition". The parameter must not be
null.public void clearComposition()
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 © 2022. All rights reserved.