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