Class ImmutableParentsStepDto
java.lang.Object
com.chutneytesting.component.scenario.api.dto.ImmutableParentsStepDto
- All Implemented Interfaces:
ParentsStepDto
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableParentsStepDto
extends Object
implements ParentsStepDto
Immutable implementation of
ParentsStepDto.
Use the builder to create immutable instances:
ImmutableParentsStepDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableParentsStepDto.Nested classes/interfaces inherited from interface com.chutneytesting.component.scenario.api.dto.ParentsStepDto
ParentsStepDto.NameIdDto -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableParentsStepDto.static ImmutableParentsStepDtocopyOf(ParentsStepDto instance) Creates an immutable copy of aParentsStepDtovalue.booleanThis instance is equal to all instances ofImmutableParentsStepDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:parentSteps,parentScenario.toString()Prints the immutable valueParentsStepDtowith attribute values.final ImmutableParentsStepDtowithParentScenario(ParentsStepDto.NameIdDto... elements) Copy the current immutable object with elements that replace the content ofparentScenario.final ImmutableParentsStepDtowithParentScenario(Iterable<? extends ParentsStepDto.NameIdDto> elements) Copy the current immutable object with elements that replace the content ofparentScenario.final ImmutableParentsStepDtowithParentSteps(ParentsStepDto.NameIdDto... elements) Copy the current immutable object with elements that replace the content ofparentSteps.final ImmutableParentsStepDtowithParentSteps(Iterable<? extends ParentsStepDto.NameIdDto> elements) Copy the current immutable object with elements that replace the content ofparentSteps.
-
Method Details
-
parentSteps
- Specified by:
parentStepsin interfaceParentsStepDto- Returns:
- The value of the
parentStepsattribute
-
parentScenario
- Specified by:
parentScenarioin interfaceParentsStepDto- Returns:
- The value of the
parentScenarioattribute
-
withParentSteps
Copy the current immutable object with elements that replace the content ofparentSteps.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withParentSteps
public final ImmutableParentsStepDto withParentSteps(Iterable<? extends ParentsStepDto.NameIdDto> elements) Copy the current immutable object with elements that replace the content ofparentSteps. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of parentSteps elements to set- Returns:
- A modified copy of
thisobject
-
withParentScenario
Copy the current immutable object with elements that replace the content ofparentScenario.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withParentScenario
public final ImmutableParentsStepDto withParentScenario(Iterable<? extends ParentsStepDto.NameIdDto> elements) Copy the current immutable object with elements that replace the content ofparentScenario. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of parentScenario elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableParentsStepDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:parentSteps,parentScenario. -
toString
Prints the immutable valueParentsStepDtowith attribute values. -
copyOf
Creates an immutable copy of aParentsStepDtovalue. 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 ParentsStepDto instance
-
builder
Creates a builder forImmutableParentsStepDto.ImmutableParentsStepDto.builder() .addParentSteps|addAllParentSteps(com.chutneytesting.component.scenario.api.dto.ParentsStepDto.NameIdDto) //parentStepselements .addParentScenario|addAllParentScenario(com.chutneytesting.component.scenario.api.dto.ParentsStepDto.NameIdDto) //parentScenarioelements .build();- Returns:
- A new ImmutableParentsStepDto builder
-