Class ImmutableComposableScenarioDto
- java.lang.Object
-
- com.chutneytesting.component.scenario.api.dto.ImmutableComposableScenarioDto
-
- All Implemented Interfaces:
ComposableTestCaseDto.ComposableScenarioDto
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableComposableScenarioDto extends Object implements ComposableTestCaseDto.ComposableScenarioDto
Immutable implementation ofComposableTestCaseDto.ComposableScenarioDto.Use the builder to create immutable instances:
ImmutableComposableScenarioDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableComposableScenarioDto.BuilderBuilds instances of typeImmutableComposableScenarioDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableComposableScenarioDto.Builderbuilder()Creates a builder forImmutableComposableScenarioDto.List<ComposableStepDto>componentSteps()static ImmutableComposableScenarioDtocopyOf(ComposableTestCaseDto.ComposableScenarioDto instance)Creates an immutable copy of aComposableTestCaseDto.ComposableScenarioDtovalue.booleanequals(Object another)This instance is equal to all instances ofImmutableComposableScenarioDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:parameters,componentSteps.List<KeyValue>parameters()StringtoString()Prints the immutable valueComposableScenarioDtowith attribute values.ImmutableComposableScenarioDtowithComponentSteps(ComposableStepDto... elements)Copy the current immutable object with elements that replace the content ofcomponentSteps.ImmutableComposableScenarioDtowithComponentSteps(Iterable<? extends ComposableStepDto> elements)Copy the current immutable object with elements that replace the content ofcomponentSteps.ImmutableComposableScenarioDtowithParameters(KeyValue... elements)Copy the current immutable object with elements that replace the content ofparameters.ImmutableComposableScenarioDtowithParameters(Iterable<? extends KeyValue> elements)Copy the current immutable object with elements that replace the content ofparameters.
-
-
-
Method Detail
-
parameters
public List<KeyValue> parameters()
- Specified by:
parametersin interfaceComposableTestCaseDto.ComposableScenarioDto- Returns:
- The value of the
parametersattribute
-
componentSteps
public List<ComposableStepDto> componentSteps()
- Specified by:
componentStepsin interfaceComposableTestCaseDto.ComposableScenarioDto- Returns:
- The value of the
componentStepsattribute
-
withParameters
public final ImmutableComposableScenarioDto withParameters(KeyValue... elements)
Copy the current immutable object with elements that replace the content ofparameters.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withParameters
public final ImmutableComposableScenarioDto withParameters(Iterable<? extends KeyValue> elements)
Copy the current immutable object with elements that replace the content ofparameters. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of parameters elements to set- Returns:
- A modified copy of
thisobject
-
withComponentSteps
public final ImmutableComposableScenarioDto withComponentSteps(ComposableStepDto... elements)
Copy the current immutable object with elements that replace the content ofcomponentSteps.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withComponentSteps
public final ImmutableComposableScenarioDto withComponentSteps(Iterable<? extends ComposableStepDto> elements)
Copy the current immutable object with elements that replace the content ofcomponentSteps. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of componentSteps elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableComposableScenarioDtothat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:parameters,componentSteps.
-
toString
public String toString()
Prints the immutable valueComposableScenarioDtowith attribute values.
-
copyOf
public static ImmutableComposableScenarioDto copyOf(ComposableTestCaseDto.ComposableScenarioDto instance)
Creates an immutable copy of aComposableTestCaseDto.ComposableScenarioDtovalue. 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 ComposableScenarioDto instance
-
builder
public static ImmutableComposableScenarioDto.Builder builder()
Creates a builder forImmutableComposableScenarioDto.ImmutableComposableScenarioDto.builder() .addParameters|addAllParameters(com.chutneytesting.server.core.domain.tools.ui.KeyValue) //parameterselements .addComponentSteps|addAllComponentSteps(com.chutneytesting.component.scenario.api.dto.ComposableStepDto) //componentStepselements .build();- Returns:
- A new ImmutableComposableScenarioDto builder
-
-