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