Class ImmutableTestCaseIndexDto
java.lang.Object
com.chutneytesting.scenario.api.raw.dto.ImmutableTestCaseIndexDto
- All Implemented Interfaces:
TestCaseIndexDto
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableTestCaseIndexDto
extends Object
implements TestCaseIndexDto
Immutable implementation of
TestCaseIndexDto.
Use the builder to create immutable instances:
ImmutableTestCaseIndexDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableTestCaseIndexDto. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableTestCaseIndexDto.static ImmutableTestCaseIndexDtocopyOf(TestCaseIndexDto instance) Creates an immutable copy of aTestCaseIndexDtovalue.booleanThis instance is equal to all instances ofImmutableTestCaseIndexDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:metadata.metadata()toString()Prints the immutable valueTestCaseIndexDtowith attribute values.Copy the current immutable object by setting a value for themetadataattribute.
-
Method Details
-
metadata
- Specified by:
metadatain interfaceTestCaseIndexDto- Returns:
- The value of the
metadataattribute
-
withMetadata
Copy the current immutable object by setting a value for themetadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for metadata- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableTestCaseIndexDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:metadata. -
toString
Prints the immutable valueTestCaseIndexDtowith attribute values. -
copyOf
Creates an immutable copy of aTestCaseIndexDtovalue. 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 TestCaseIndexDto instance
-
builder
Creates a builder forImmutableTestCaseIndexDto.ImmutableTestCaseIndexDto.builder() .metadata(com.chutneytesting.scenario.api.raw.dto.GwtTestCaseMetadataDto) // requiredmetadata.build();- Returns:
- A new ImmutableTestCaseIndexDto builder
-