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