public static class IntegerCode.Builder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
IntegerCode.builder() instead of private constructor to create new builder. |
protected |
Builder(IntegerCode pObject)
Use
IntegerCode.builder(IntegerCode) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
IntegerCode |
build()
Method creates a new instance of class IntegerCode.
|
IntegerCode |
buildValidated()
Method creates a new validated instance of class IntegerCode.
|
IntegerCode.Builder |
setCode(Integer pCode)
Method sets the attribute "code".
|
protected Builder()
IntegerCode.builder() instead of private constructor to create new builder.protected Builder(IntegerCode pObject)
IntegerCode.builder(IntegerCode) instead of private constructor to create new builder.public IntegerCode.Builder setCode(Integer pCode)
pCode - Value to which the attribute "code" should be set.public IntegerCode build()
public IntegerCode 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.