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 ofParentsStepDto.Use the builder to create immutable instances:
ImmutableParentsStepDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableParentsStepDto.BuilderBuilds instances of typeImmutableParentsStepDto.-
Nested classes/interfaces inherited from interface com.chutneytesting.component.scenario.api.dto.ParentsStepDto
ParentsStepDto.NameIdDto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableParentsStepDto.Builderbuilder()Creates a builder forImmutableParentsStepDto.static ImmutableParentsStepDtocopyOf(ParentsStepDto instance)Creates an immutable copy of aParentsStepDtovalue.booleanequals(Object another)This instance is equal to all instances ofImmutableParentsStepDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:parentSteps,parentScenario.List<ParentsStepDto.NameIdDto>parentScenario()List<ParentsStepDto.NameIdDto>parentSteps()StringtoString()Prints the immutable valueParentsStepDtowith attribute values.ImmutableParentsStepDtowithParentScenario(ParentsStepDto.NameIdDto... elements)Copy the current immutable object with elements that replace the content ofparentScenario.ImmutableParentsStepDtowithParentScenario(Iterable<? extends ParentsStepDto.NameIdDto> elements)Copy the current immutable object with elements that replace the content ofparentScenario.ImmutableParentsStepDtowithParentSteps(ParentsStepDto.NameIdDto... elements)Copy the current immutable object with elements that replace the content ofparentSteps.ImmutableParentsStepDtowithParentSteps(Iterable<? extends ParentsStepDto.NameIdDto> elements)Copy the current immutable object with elements that replace the content ofparentSteps.
-
-
-
Method Detail
-
parentSteps
public List<ParentsStepDto.NameIdDto> parentSteps()
- Specified by:
parentStepsin interfaceParentsStepDto- Returns:
- The value of the
parentStepsattribute
-
parentScenario
public List<ParentsStepDto.NameIdDto> parentScenario()
- Specified by:
parentScenarioin interfaceParentsStepDto- Returns:
- The value of the
parentScenarioattribute
-
withParentSteps
public final ImmutableParentsStepDto withParentSteps(ParentsStepDto.NameIdDto... elements)
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
public final ImmutableParentsStepDto withParentScenario(ParentsStepDto.NameIdDto... elements)
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
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valueParentsStepDtowith attribute values.
-
copyOf
public static ImmutableParentsStepDto copyOf(ParentsStepDto instance)
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
public static ImmutableParentsStepDto.Builder 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
-
-