public static class PrimitiveObjectWithRestrictions.Builder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
PrimitiveObjectWithRestrictions.builder() instead of private constructor to create new builder. |
protected |
Builder(PrimitiveObjectWithRestrictions pObject)
Use
PrimitiveObjectWithRestrictions.builder(PrimitiveObjectWithRestrictions) instead of private
constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
PrimitiveObjectWithRestrictions |
build()
Method creates a new instance of class PrimitiveObjectWithRestrictions.
|
PrimitiveObjectWithRestrictions |
buildValidated()
Method creates a new validated instance of class PrimitiveObjectWithRestrictions.
|
PrimitiveObjectWithRestrictions.Builder |
setABigDecimal(BigDecimal pABigDecimal)
Method sets the attribute "aBigDecimal".
|
PrimitiveObjectWithRestrictions.Builder |
setABigInteger(BigInteger pABigInteger)
Method sets the attribute "aBigInteger".
|
PrimitiveObjectWithRestrictions.Builder |
setABoolean(boolean pABoolean)
Method sets the attribute "aBoolean".
|
PrimitiveObjectWithRestrictions.Builder |
setAByte(byte pAByte)
Method sets the attribute "aByte".
|
PrimitiveObjectWithRestrictions.Builder |
setACharacter(char pACharacter)
Method sets the attribute "aCharacter".
|
PrimitiveObjectWithRestrictions.Builder |
setADouble(double pADouble)
Method sets the attribute "aDouble".
|
PrimitiveObjectWithRestrictions.Builder |
setAFloat(float pAFloat)
Method sets the attribute "aFloat".
|
PrimitiveObjectWithRestrictions.Builder |
setAInteger(int pAInteger)
Method sets the attribute "aInteger".
|
PrimitiveObjectWithRestrictions.Builder |
setALong(long pALong)
Method sets the attribute "aLong".
|
PrimitiveObjectWithRestrictions.Builder |
setAShort(short pAShort)
Method sets the attribute "aShort".
|
PrimitiveObjectWithRestrictions.Builder |
setAString(String pAString)
Method sets the attribute "aString".
|
PrimitiveObjectWithRestrictions.Builder |
setBBoolean(Boolean pBBoolean)
Method sets the attribute "bBoolean".
|
PrimitiveObjectWithRestrictions.Builder |
setBByte(Byte pBByte)
Method sets the attribute "bByte".
|
PrimitiveObjectWithRestrictions.Builder |
setBCharacter(Character pBCharacter)
Method sets the attribute "bCharacter".
|
PrimitiveObjectWithRestrictions.Builder |
setBDouble(Double pBDouble)
Method sets the attribute "bDouble".
|
PrimitiveObjectWithRestrictions.Builder |
setBFloat(Float pBFloat)
Method sets the attribute "bFloat".
|
PrimitiveObjectWithRestrictions.Builder |
setBInteger(Integer pBInteger)
Method sets the attribute "bInteger".
|
PrimitiveObjectWithRestrictions.Builder |
setBLong(Long pBLong)
Method sets the attribute "bLong".
|
PrimitiveObjectWithRestrictions.Builder |
setBShort(Short pBShort)
Method sets the attribute "bShort".
|
PrimitiveObjectWithRestrictions.Builder |
setBString(String pBString)
Method sets the attribute "bString".
|
PrimitiveObjectWithRestrictions.Builder |
setCBoolean(boolean pCBoolean)
Method sets the attribute "cBoolean".
|
PrimitiveObjectWithRestrictions.Builder |
setCInteger(Integer pCInteger)
Method sets the attribute "cInteger".
|
protected Builder()
PrimitiveObjectWithRestrictions.builder() instead of private constructor to create new builder.protected Builder(PrimitiveObjectWithRestrictions pObject)
PrimitiveObjectWithRestrictions.builder(PrimitiveObjectWithRestrictions) instead of private
constructor to create new builder.public PrimitiveObjectWithRestrictions.Builder setABoolean(boolean pABoolean)
pABoolean - Value to which the attribute "aBoolean" should be set.public PrimitiveObjectWithRestrictions.Builder setBBoolean(Boolean pBBoolean)
pBBoolean - Value to which the attribute "bBoolean" should be set.public PrimitiveObjectWithRestrictions.Builder setCBoolean(boolean pCBoolean)
pCBoolean - Value to which the attribute "cBoolean" should be set.public PrimitiveObjectWithRestrictions.Builder setAByte(byte pAByte)
pAByte - Value to which the attribute "aByte" should be set.public PrimitiveObjectWithRestrictions.Builder setBByte(Byte pBByte)
pBByte - Value to which the attribute "bByte" should be set.public PrimitiveObjectWithRestrictions.Builder setAShort(short pAShort)
pAShort - Value to which the attribute "aShort" should be set.public PrimitiveObjectWithRestrictions.Builder setBShort(Short pBShort)
pBShort - Value to which the attribute "bShort" should be set.public PrimitiveObjectWithRestrictions.Builder setAInteger(int pAInteger)
pAInteger - Value to which the attribute "aInteger" should be set.public PrimitiveObjectWithRestrictions.Builder setBInteger(Integer pBInteger)
pBInteger - Value to which the attribute "bInteger" should be set.public PrimitiveObjectWithRestrictions.Builder setCInteger(Integer pCInteger)
pCInteger - Value to which the attribute "cInteger" should be set.public PrimitiveObjectWithRestrictions.Builder setALong(long pALong)
pALong - Value to which the attribute "aLong" should be set.public PrimitiveObjectWithRestrictions.Builder setBLong(Long pBLong)
pBLong - Value to which the attribute "bLong" should be set.public PrimitiveObjectWithRestrictions.Builder setABigInteger(BigInteger pABigInteger)
pABigInteger - Value to which the attribute "aBigInteger" should be set.public PrimitiveObjectWithRestrictions.Builder setACharacter(char pACharacter)
pACharacter - Value to which the attribute "aCharacter" should be set.public PrimitiveObjectWithRestrictions.Builder setBCharacter(Character pBCharacter)
pBCharacter - Value to which the attribute "bCharacter" should be set.public PrimitiveObjectWithRestrictions.Builder setAFloat(float pAFloat)
pAFloat - Value to which the attribute "aFloat" should be set.public PrimitiveObjectWithRestrictions.Builder setBFloat(Float pBFloat)
pBFloat - Value to which the attribute "bFloat" should be set.public PrimitiveObjectWithRestrictions.Builder setADouble(double pADouble)
pADouble - Value to which the attribute "aDouble" should be set.public PrimitiveObjectWithRestrictions.Builder setBDouble(Double pBDouble)
pBDouble - Value to which the attribute "bDouble" should be set.public PrimitiveObjectWithRestrictions.Builder setABigDecimal(BigDecimal pABigDecimal)
pABigDecimal - Value to which the attribute "aBigDecimal" should be set.public PrimitiveObjectWithRestrictions.Builder setAString(String pAString)
pAString - Value to which the attribute "aString" should be set.public PrimitiveObjectWithRestrictions.Builder setBString(String pBString)
pBString - Value to which the attribute "bString" should be set.public PrimitiveObjectWithRestrictions build()
public PrimitiveObjectWithRestrictions 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.