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