public static class IgnoringClass.Builder extends Object
IgnoringClass.| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
IgnoringClass.builder() instead of private constructor to create new builder. |
protected |
Builder(IgnoringClass pObject)
Use
IgnoringClass.builder(IgnoringClass) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
IgnoringClass |
build()
Method creates a new instance of class IgnoringClass.
|
IgnoringClass |
buildValidated()
Method creates a new validated instance of class IgnoringClass.
|
IgnoringClass.Builder |
setAge(Integer pAge)
Method sets attribute
age. |
protected Builder()
IgnoringClass.builder() instead of private constructor to create new builder.protected Builder(IgnoringClass pObject)
IgnoringClass.builder(IgnoringClass) instead of private constructor to create new builder.public IgnoringClass.Builder setAge(Integer pAge)
age.pAge - Value to which age should be set.IgnoringClass.Builder Instance of this builder to support chaining setters. Method never returns null.public IgnoringClass build()
public IgnoringClass 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.