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