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 ofTestCaseEditionDto.Use the builder to create immutable instances:
ImmutableTestCaseEditionDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableTestCaseEditionDto.BuilderBuilds instances of typeImmutableTestCaseEditionDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableTestCaseEditionDto.Builderbuilder()Creates a builder forImmutableTestCaseEditionDto.static ImmutableTestCaseEditionDtocopyOf(TestCaseEditionDto instance)Creates an immutable copy of aTestCaseEditionDtovalue.InstanteditionStartDate()StringeditionUser()booleanequals(Object another)This instance is equal to all instances ofImmutableTestCaseEditionDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:testCaseId,testCaseVersion,editionStartDate,editionUser.StringtestCaseId()IntegertestCaseVersion()StringtoString()Prints the immutable valueTestCaseEditionDtowith attribute values.ImmutableTestCaseEditionDtowithEditionStartDate(Instant value)Copy the current immutable object by setting a value for theeditionStartDateattribute.ImmutableTestCaseEditionDtowithEditionUser(String value)Copy the current immutable object by setting a value for theeditionUserattribute.ImmutableTestCaseEditionDtowithTestCaseId(String value)Copy the current immutable object by setting a value for thetestCaseIdattribute.ImmutableTestCaseEditionDtowithTestCaseVersion(Integer value)Copy the current immutable object by setting a value for thetestCaseVersionattribute.
-
-
-
Method Detail
-
testCaseId
public String testCaseId()
- Specified by:
testCaseIdin interfaceTestCaseEditionDto- Returns:
- The value of the
testCaseIdattribute
-
testCaseVersion
public Integer testCaseVersion()
- Specified by:
testCaseVersionin interfaceTestCaseEditionDto- Returns:
- The value of the
testCaseVersionattribute
-
editionStartDate
public Instant editionStartDate()
- Specified by:
editionStartDatein interfaceTestCaseEditionDto- Returns:
- The value of the
editionStartDateattribute
-
editionUser
public String editionUser()
- Specified by:
editionUserin interfaceTestCaseEditionDto- Returns:
- The value of the
editionUserattribute
-
withTestCaseId
public final ImmutableTestCaseEditionDto withTestCaseId(String value)
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
public final ImmutableTestCaseEditionDto withTestCaseVersion(Integer value)
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
public final ImmutableTestCaseEditionDto withEditionStartDate(Instant value)
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
public final ImmutableTestCaseEditionDto withEditionUser(String value)
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
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valueTestCaseEditionDtowith attribute values.
-
copyOf
public static ImmutableTestCaseEditionDto copyOf(TestCaseEditionDto instance)
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
public static ImmutableTestCaseEditionDto.Builder 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
-
-