public static class DoubleCode.Builder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
DoubleCode.builder() instead of private constructor to create new builder. |
protected |
Builder(DoubleCode pObject)
Use
DoubleCode.builder(DoubleCode) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
DoubleCode |
build()
Method creates a new instance of class DoubleCode.
|
DoubleCode |
buildValidated()
Method creates a new validated instance of class DoubleCode.
|
DoubleCode.Builder |
setCode(double pCode)
Method sets the attribute "code".
|
protected Builder()
DoubleCode.builder() instead of private constructor to create new builder.protected Builder(DoubleCode pObject)
DoubleCode.builder(DoubleCode) instead of private constructor to create new builder.public DoubleCode.Builder setCode(double pCode)
pCode - Value to which the attribute "code" should be set.public DoubleCode build()
public DoubleCode buildValidated() throws javax.validation.ConstraintViolationException
javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2022. All rights reserved.