Class ImmutableTestCaseEditionDto
java.lang.Object
com.chutneytesting.design.api.editionlock.ImmutableTestCaseEditionDto
- All Implemented Interfaces:
TestCaseEditionDto
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableTestCaseEditionDto
extends Object
implements TestCaseEditionDto
Immutable implementation of
TestCaseEditionDto.
Use the builder to create immutable instances:
ImmutableTestCaseEditionDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableTestCaseEditionDto. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableTestCaseEditionDto.static ImmutableTestCaseEditionDtocopyOf(TestCaseEditionDto instance) Creates an immutable copy of aTestCaseEditionDtovalue.booleanThis instance is equal to all instances ofImmutableTestCaseEditionDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:testCaseId,testCaseVersion,editionStartDate,editionUser.toString()Prints the immutable valueTestCaseEditionDtowith attribute values.withEditionStartDate(Instant value) Copy the current immutable object by setting a value for theeditionStartDateattribute.withEditionUser(String value) Copy the current immutable object by setting a value for theeditionUserattribute.withTestCaseId(String value) Copy the current immutable object by setting a value for thetestCaseIdattribute.withTestCaseVersion(Integer value) Copy the current immutable object by setting a value for thetestCaseVersionattribute.
-
Method Details
-
testCaseId
- Specified by:
testCaseIdin interfaceTestCaseEditionDto- Returns:
- The value of the
testCaseIdattribute
-
testCaseVersion
- Specified by:
testCaseVersionin interfaceTestCaseEditionDto- Returns:
- The value of the
testCaseVersionattribute
-
editionStartDate
- Specified by:
editionStartDatein interfaceTestCaseEditionDto- Returns:
- The value of the
editionStartDateattribute
-
editionUser
- Specified by:
editionUserin interfaceTestCaseEditionDto- Returns:
- The value of the
editionUserattribute
-
withTestCaseId
Copy the current immutable object by setting a value for thetestCaseIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for testCaseId- Returns:
- A modified copy of the
thisobject
-
withTestCaseVersion
Copy the current immutable object by setting a value for thetestCaseVersionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for testCaseVersion- Returns:
- A modified copy of the
thisobject
-
withEditionStartDate
Copy the current immutable object by setting a value for theeditionStartDateattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for editionStartDate- Returns:
- A modified copy of the
thisobject
-
withEditionUser
Copy the current immutable object by setting a value for theeditionUserattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for editionUser- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableTestCaseEditionDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:testCaseId,testCaseVersion,editionStartDate,editionUser. -
toString
Prints the immutable valueTestCaseEditionDtowith attribute values. -
copyOf
Creates an immutable copy of aTestCaseEditionDtovalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable TestCaseEditionDto instance
-
builder
Creates a builder forImmutableTestCaseEditionDto.ImmutableTestCaseEditionDto.builder() .testCaseId(String) // requiredtestCaseId.testCaseVersion(Integer) // requiredtestCaseVersion.editionStartDate(java.time.Instant) // requirededitionStartDate.editionUser(String) // requirededitionUser.build();- Returns:
- A new ImmutableTestCaseEditionDto builder
-