Class PrimitiveObjectWithRestrictions.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.PrimitiveObjectWithRestrictions.Builder
-
- Enclosing class:
- PrimitiveObjectWithRestrictions
public static class PrimitiveObjectWithRestrictions.Builder extends java.lang.ObjectClass implements builder to create a new instance of classPrimitiveObjectWithRestrictions.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UsePrimitiveObjectWithRestrictions.builder()instead of private constructor to create new builder.protectedBuilder(PrimitiveObjectWithRestrictions pObject)UsePrimitiveObjectWithRestrictions.builder(PrimitiveObjectWithRestrictions)instead of private constructor to create new builder.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
protected Builder()
UsePrimitiveObjectWithRestrictions.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(PrimitiveObjectWithRestrictions pObject)
UsePrimitiveObjectWithRestrictions.builder(PrimitiveObjectWithRestrictions)instead of private constructor to create new builder.
-
-
Method Detail
-
setABoolean
public PrimitiveObjectWithRestrictions.Builder setABoolean(boolean pABoolean)
Method sets attributeaBoolean.- Parameters:
pABoolean- Value to whichaBooleanshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setBBoolean
public PrimitiveObjectWithRestrictions.Builder setBBoolean(java.lang.Boolean pBBoolean)
Method sets attributebBoolean.- Parameters:
pBBoolean- Value to whichbBooleanshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setCBoolean
public PrimitiveObjectWithRestrictions.Builder setCBoolean(boolean pCBoolean)
Method sets attributecBoolean.- Parameters:
pCBoolean- Value to whichcBooleanshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setAByte
public PrimitiveObjectWithRestrictions.Builder setAByte(byte pAByte)
Method sets attributeaByte.- Parameters:
pAByte- Value to whichaByteshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setBByte
public PrimitiveObjectWithRestrictions.Builder setBByte(java.lang.Byte pBByte)
Method sets attributebByte.- Parameters:
pBByte- Value to whichbByteshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setAShort
public PrimitiveObjectWithRestrictions.Builder setAShort(short pAShort)
Method sets attributeaShort.- Parameters:
pAShort- Value to whichaShortshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setBShort
public PrimitiveObjectWithRestrictions.Builder setBShort(java.lang.Short pBShort)
Method sets attributebShort.- Parameters:
pBShort- Value to whichbShortshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setAInteger
public PrimitiveObjectWithRestrictions.Builder setAInteger(int pAInteger)
Method sets attributeaInteger.- Parameters:
pAInteger- Value to whichaIntegershould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setBInteger
public PrimitiveObjectWithRestrictions.Builder setBInteger(java.lang.Integer pBInteger)
Method sets attributebInteger.- Parameters:
pBInteger- Value to whichbIntegershould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setCInteger
public PrimitiveObjectWithRestrictions.Builder setCInteger(java.lang.Integer pCInteger)
Method sets attributecInteger.- Parameters:
pCInteger- Value to whichcIntegershould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setALong
public PrimitiveObjectWithRestrictions.Builder setALong(long pALong)
Method sets attributeaLong.- Parameters:
pALong- Value to whichaLongshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setBLong
public PrimitiveObjectWithRestrictions.Builder setBLong(java.lang.Long pBLong)
Method sets attributebLong.- Parameters:
pBLong- Value to whichbLongshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setABigInteger
public PrimitiveObjectWithRestrictions.Builder setABigInteger(java.math.BigInteger pABigInteger)
Method sets attributeaBigInteger.- Parameters:
pABigInteger- Value to whichaBigIntegershould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setACharacter
public PrimitiveObjectWithRestrictions.Builder setACharacter(char pACharacter)
Method sets attributeaCharacter.- Parameters:
pACharacter- Value to whichaCharactershould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setBCharacter
public PrimitiveObjectWithRestrictions.Builder setBCharacter(java.lang.Character pBCharacter)
Method sets attributebCharacter.- Parameters:
pBCharacter- Value to whichbCharactershould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setAFloat
public PrimitiveObjectWithRestrictions.Builder setAFloat(float pAFloat)
Method sets attributeaFloat.- Parameters:
pAFloat- Value to whichaFloatshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setBFloat
public PrimitiveObjectWithRestrictions.Builder setBFloat(java.lang.Float pBFloat)
Method sets attributebFloat.- Parameters:
pBFloat- Value to whichbFloatshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setADouble
public PrimitiveObjectWithRestrictions.Builder setADouble(double pADouble)
Method sets attributeaDouble.- Parameters:
pADouble- Value to whichaDoubleshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setBDouble
public PrimitiveObjectWithRestrictions.Builder setBDouble(java.lang.Double pBDouble)
Method sets attributebDouble.- Parameters:
pBDouble- Value to whichbDoubleshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setABigDecimal
public PrimitiveObjectWithRestrictions.Builder setABigDecimal(java.math.BigDecimal pABigDecimal)
Method sets attributeaBigDecimal.- Parameters:
pABigDecimal- Value to whichaBigDecimalshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setAString
public PrimitiveObjectWithRestrictions.Builder setAString(java.lang.String pAString)
Method sets attributeaString.- Parameters:
pAString- Value to whichaStringshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setBString
public PrimitiveObjectWithRestrictions.Builder setBString(java.lang.String pBString)
Method sets attributebString.- Parameters:
pBString- Value to whichbStringshould be set.- Returns:
PrimitiveObjectWithRestrictions.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public PrimitiveObjectWithRestrictions build()
Method creates a new instance of class PrimitiveObjectWithRestrictions. The object will be initialized with the values of the builder.- Returns:
- PrimitiveObjectWithRestrictions Created object. The method never returns null.
-
buildValidated
public PrimitiveObjectWithRestrictions buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class PrimitiveObjectWithRestrictions. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- PrimitiveObjectWithRestrictions Created and validated object. The method never returns null.
- Throws:
javax.validation.ConstraintViolationException- in case that one or more validations for the created object failed.
-
-