public static class BusinessChild.Builder extends BusinessParent.Builder
BusinessChild.| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
BusinessChild.builder() instead of private constructor to create new builder. |
protected |
Builder(BusinessChild pObject)
Use
BusinessChild.builder(BusinessChild) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
BusinessChild |
build()
Method creates a new instance of class BusinessChild.
|
BusinessChild |
buildValidated()
Method creates a new validated instance of class BusinessChild.
|
BusinessChild.Builder |
setChildAttribute(String pChildAttribute)
Method sets attribute
childAttribute. |
BusinessChild.Builder |
setParentAttribute(long pParentAttribute)
Method sets attribute
BusinessParent.parentAttribute. |
BusinessChild.Builder |
setTechAttribute(String pTechAttribute)
Method sets attribute
TechParent.techAttribute. |
protected Builder()
BusinessChild.builder() instead of private constructor to create new builder.protected Builder(BusinessChild pObject)
BusinessChild.builder(BusinessChild) instead of private constructor to create new builder.public BusinessChild.Builder setTechAttribute(String pTechAttribute)
TechParent.techAttribute.setTechAttribute in class BusinessParent.BuilderpTechAttribute - Value to which TechParent.techAttribute should be set.BusinessChild.Builder Instance of this builder to support chaining setters. Method never returns null.public BusinessChild.Builder setParentAttribute(long pParentAttribute)
BusinessParent.parentAttribute.setParentAttribute in class BusinessParent.BuilderpParentAttribute - Value to which BusinessParent.parentAttribute should be set.BusinessChild.Builder Instance of this builder to support chaining setters. Method never returns null.public BusinessChild.Builder setChildAttribute(String pChildAttribute)
childAttribute.pChildAttribute - Value to which childAttribute should be set.BusinessChild.Builder Instance of this builder to support chaining setters. Method never returns null.public BusinessChild build()
build in class BusinessParent.Builderpublic BusinessChild buildValidated() throws javax.validation.ConstraintViolationException
buildValidated in class BusinessParent.Builderjavax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2023. All rights reserved.