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 of
ComposableTestCaseDto.ComposableScenarioDto.
Use the builder to create immutable instances:
ImmutableComposableScenarioDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableComposableScenarioDto. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableComposableScenarioDto.Creates an immutable copy of aComposableTestCaseDto.ComposableScenarioDtovalue.booleanThis instance is equal to all instances ofImmutableComposableScenarioDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:parameters,componentSteps.toString()Prints the immutable valueComposableScenarioDtowith attribute values.withComponentSteps(ComposableStepDto... elements) Copy the current immutable object with elements that replace the content ofcomponentSteps.withComponentSteps(Iterable<? extends ComposableStepDto> elements) Copy the current immutable object with elements that replace the content ofcomponentSteps.withParameters(KeyValue... elements) Copy the current immutable object with elements that replace the content ofparameters.withParameters(Iterable<? extends KeyValue> elements) Copy the current immutable object with elements that replace the content ofparameters.
-
Method Details
-
parameters
- Specified by:
parametersin interfaceComposableTestCaseDto.ComposableScenarioDto- Returns:
- The value of the
parametersattribute
-
componentSteps
- Specified by:
componentStepsin interfaceComposableTestCaseDto.ComposableScenarioDto- Returns:
- The value of the
componentStepsattribute
-
withParameters
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
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
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
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
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
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
-