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().

  • Method Details

    • metadata

      public GwtTestCaseMetadataDto metadata()
      Specified by:
      metadata in interface TestCaseIndexDto
      Returns:
      The value of the metadata attribute
    • withMetadata

      public final ImmutableTestCaseIndexDto withMetadata(GwtTestCaseMetadataDto value)
      Copy the current immutable object by setting a value for the metadata attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for metadata
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableTestCaseIndexDto that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: metadata.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value TestCaseIndexDto with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableTestCaseIndexDto copyOf(TestCaseIndexDto instance)
      Creates an immutable copy of a TestCaseIndexDto value. 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

      public static ImmutableTestCaseIndexDto.Builder builder()
      Creates a builder for ImmutableTestCaseIndexDto.
       ImmutableTestCaseIndexDto.builder()
          .metadata(com.chutneytesting.scenario.api.raw.dto.GwtTestCaseMetadataDto) // required metadata
          .build();
       
      Returns:
      A new ImmutableTestCaseIndexDto builder