public static class WeirdParent.Builder extends Object
WeirdParent.| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
WeirdParent.builder() instead of private constructor to create new builder. |
protected |
Builder(WeirdParent pObject)
Use
WeirdParent.builder(WeirdParent) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
WeirdParent |
build()
Method creates a new instance of class WeirdParent.
|
WeirdParent |
buildValidated()
Method creates a new validated instance of class WeirdParent.
|
WeirdParent.Builder |
setComplexBooking(ComplexBookingID pComplexBooking)
Method sets association
complexBooking. |
WeirdParent.Builder |
setComplexBookings(Set<ComplexBookingID> pComplexBookings)
Method sets association
complexBookings. |
WeirdParent.Builder |
setSomeProperty(String pSomeProperty)
Method sets attribute
someProperty. |
protected Builder()
WeirdParent.builder() instead of private constructor to create new builder.protected Builder(WeirdParent pObject)
WeirdParent.builder(WeirdParent) instead of private constructor to create new builder.public WeirdParent.Builder setSomeProperty(String pSomeProperty)
someProperty.pSomeProperty - Value to which someProperty should be set.WeirdParent.Builder Instance of this builder to support chaining setters. Method never returns null.public WeirdParent.Builder setComplexBooking(ComplexBookingID pComplexBooking)
complexBooking.pComplexBooking - Value to which complexBooking should be set.WeirdParent.Builder Instance of this builder to support chaining setters. Method never returns null.public WeirdParent.Builder setComplexBookings(Set<ComplexBookingID> pComplexBookings)
complexBookings.pComplexBookings - Collection to which complexBookings should be set.WeirdParent.Builder Instance of this builder to support chaining setters. Method never returns null.public WeirdParent build()
public WeirdParent buildValidated() throws javax.validation.ConstraintViolationException
javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2023. All rights reserved.