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