Class ImmutableGwtStepDto
- java.lang.Object
-
- com.chutneytesting.scenario.api.raw.dto.ImmutableGwtStepDto
-
- All Implemented Interfaces:
GwtStepDto
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableGwtStepDto extends Object implements GwtStepDto
Immutable implementation ofGwtStepDto.Use the builder to create immutable instances:
ImmutableGwtStepDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableGwtStepDto.BuilderBuilds instances of typeImmutableGwtStepDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableGwtStepDto.Builderbuilder()Creates a builder forImmutableGwtStepDto.static ImmutableGwtStepDtocopyOf(GwtStepDto instance)Creates an immutable copy of aGwtStepDtovalue.booleanequals(Object another)This instance is equal to all instances ofImmutableGwtStepDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:sentence,subSteps,implementation,strategy,xRef.Optional<GwtStepImplementationDto>implementation()Optional<String>sentence()Optional<StrategyDto>strategy()List<GwtStepDto>subSteps()StringtoString()Prints the immutable valueGwtStepDtowith attribute values.ImmutableGwtStepDtowithImplementation(GwtStepImplementationDto value)Copy the current immutable object by setting a present value for the optionalimplementationattribute.ImmutableGwtStepDtowithImplementation(Optional<? extends GwtStepImplementationDto> optional)Copy the current immutable object by setting an optional value for theimplementationattribute.ImmutableGwtStepDtowithSentence(String value)Copy the current immutable object by setting a present value for the optionalsentenceattribute.ImmutableGwtStepDtowithSentence(Optional<String> optional)Copy the current immutable object by setting an optional value for thesentenceattribute.ImmutableGwtStepDtowithStrategy(StrategyDto value)Copy the current immutable object by setting a present value for the optionalstrategyattribute.ImmutableGwtStepDtowithStrategy(Optional<? extends StrategyDto> optional)Copy the current immutable object by setting an optional value for thestrategyattribute.ImmutableGwtStepDtowithSubSteps(GwtStepDto... elements)Copy the current immutable object with elements that replace the content ofsubSteps.ImmutableGwtStepDtowithSubSteps(Iterable<? extends GwtStepDto> elements)Copy the current immutable object with elements that replace the content ofsubSteps.ImmutableGwtStepDtowithXRef(String value)Copy the current immutable object by setting a present value for the optionalxRefattribute.ImmutableGwtStepDtowithXRef(Optional<String> optional)Copy the current immutable object by setting an optional value for thexRefattribute.Optional<String>xRef()
-
-
-
Method Detail
-
sentence
public Optional<String> sentence()
- Specified by:
sentencein interfaceGwtStepDto- Returns:
- The value of the
sentenceattribute
-
subSteps
public List<GwtStepDto> subSteps()
- Specified by:
subStepsin interfaceGwtStepDto- Returns:
- The value of the
subStepsattribute
-
implementation
public Optional<GwtStepImplementationDto> implementation()
- Specified by:
implementationin interfaceGwtStepDto- Returns:
- The value of the
implementationattribute
-
strategy
public Optional<StrategyDto> strategy()
- Specified by:
strategyin interfaceGwtStepDto- Returns:
- The value of the
strategyattribute
-
xRef
public Optional<String> xRef()
- Specified by:
xRefin interfaceGwtStepDto- Returns:
- The value of the
xRefattribute
-
withSentence
public final ImmutableGwtStepDto withSentence(String value)
Copy the current immutable object by setting a present value for the optionalsentenceattribute.- Parameters:
value- The value for sentence- Returns:
- A modified copy of
thisobject
-
withSentence
public final ImmutableGwtStepDto withSentence(Optional<String> optional)
Copy the current immutable object by setting an optional value for thesentenceattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sentence- Returns:
- A modified copy of
thisobject
-
withSubSteps
public final ImmutableGwtStepDto withSubSteps(GwtStepDto... elements)
Copy the current immutable object with elements that replace the content ofsubSteps.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSubSteps
public final ImmutableGwtStepDto withSubSteps(Iterable<? extends GwtStepDto> elements)
Copy the current immutable object with elements that replace the content ofsubSteps. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of subSteps elements to set- Returns:
- A modified copy of
thisobject
-
withImplementation
public final ImmutableGwtStepDto withImplementation(GwtStepImplementationDto value)
Copy the current immutable object by setting a present value for the optionalimplementationattribute.- Parameters:
value- The value for implementation- Returns:
- A modified copy of
thisobject
-
withImplementation
public final ImmutableGwtStepDto withImplementation(Optional<? extends GwtStepImplementationDto> optional)
Copy the current immutable object by setting an optional value for theimplementationattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for implementation- Returns:
- A modified copy of
thisobject
-
withStrategy
public final ImmutableGwtStepDto withStrategy(StrategyDto value)
Copy the current immutable object by setting a present value for the optionalstrategyattribute.- Parameters:
value- The value for strategy- Returns:
- A modified copy of
thisobject
-
withStrategy
public final ImmutableGwtStepDto withStrategy(Optional<? extends StrategyDto> optional)
Copy the current immutable object by setting an optional value for thestrategyattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for strategy- Returns:
- A modified copy of
thisobject
-
withXRef
public final ImmutableGwtStepDto withXRef(String value)
Copy the current immutable object by setting a present value for the optionalxRefattribute.- Parameters:
value- The value for xRef- Returns:
- A modified copy of
thisobject
-
withXRef
public final ImmutableGwtStepDto withXRef(Optional<String> optional)
Copy the current immutable object by setting an optional value for thexRefattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for xRef- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableGwtStepDtothat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:sentence,subSteps,implementation,strategy,xRef.
-
toString
public String toString()
Prints the immutable valueGwtStepDtowith attribute values.
-
copyOf
public static ImmutableGwtStepDto copyOf(GwtStepDto instance)
Creates an immutable copy of aGwtStepDtovalue. 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 GwtStepDto instance
-
builder
public static ImmutableGwtStepDto.Builder builder()
Creates a builder forImmutableGwtStepDto.ImmutableGwtStepDto.builder() .sentence(String) // optionalsentence.addSubSteps|addAllSubSteps(com.chutneytesting.scenario.api.raw.dto.GwtStepDto) //subStepselements .implementation(com.chutneytesting.scenario.api.raw.dto.GwtStepImplementationDto) // optionalimplementation.strategy(com.chutneytesting.scenario.api.raw.dto.StrategyDto) // optionalstrategy.xRef(String) // optionalxRef.build();- Returns:
- A new ImmutableGwtStepDto builder
-
-