Class LongCode.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.LongCode.Builder
-
- Enclosing class:
- LongCode
public static class LongCode.Builder extends java.lang.ObjectClass implements builder to create a new instance of classLongCode.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseLongCode.builder()instead of private constructor to create new builder.protectedBuilder(LongCode pObject)UseLongCode.builder(LongCode)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongCodebuild()Method creates a new instance of class LongCode.LongCodebuildValidated()Method creates a new validated instance of class LongCode.LongCode.BuildersetCode(java.lang.Long pCode)Method sets attributecode.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseLongCode.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(LongCode pObject)
UseLongCode.builder(LongCode)instead of private constructor to create new builder.
-
-
Method Detail
-
setCode
public LongCode.Builder setCode(java.lang.Long pCode)
Method sets attributecode.- Parameters:
pCode- Value to whichcodeshould be set.- Returns:
LongCode.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public LongCode build()
Method creates a new instance of class LongCode. The object will be initialized with the values of the builder.- Returns:
- LongCode Created object. The method never returns null.
-
buildValidated
public LongCode buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class LongCode. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- LongCode 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.
-
-