public static class DoubleCode.Builder extends Object
DoubleCode.| 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 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)
code.pCode - Value to which code should be set.DoubleCode.Builder Instance of this builder to support chaining setters. Method never returns null.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 © 2023. All rights reserved.