Class ImmutableGwtStepDto
java.lang.Object
fr.enedis.chutney.scenario.api.raw.dto.ImmutableGwtStepDto
- All Implemented Interfaces:
GwtStepDto
@Generated(from="GwtStepDto",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableGwtStepDto
extends Object
implements GwtStepDto
Immutable implementation of
GwtStepDto.
Use the builder to create immutable instances:
ImmutableGwtStepDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableGwtStepDto. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableGwtStepDto.Builderbuilder()Creates a builder forImmutableGwtStepDto.static ImmutableGwtStepDtocopyOf(GwtStepDto instance) Creates an immutable copy of aGwtStepDtovalue.booleanThis instance is equal to all instances ofImmutableGwtStepDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:sentence,subSteps,implementation,strategy,xRef.sentence()strategy()subSteps()toString()Prints the immutable valueGwtStepDtowith attribute values.final ImmutableGwtStepDtoCopy the current immutable object by setting a present value for the optionalimplementationattribute.final ImmutableGwtStepDtowithImplementation(Optional<? extends GwtStepImplementationDto> optional) Copy the current immutable object by setting an optional value for theimplementationattribute.final ImmutableGwtStepDtowithSentence(String value) Copy the current immutable object by setting a present value for the optionalsentenceattribute.final ImmutableGwtStepDtowithSentence(Optional<String> optional) Copy the current immutable object by setting an optional value for thesentenceattribute.final ImmutableGwtStepDtowithStrategy(StrategyDto value) Copy the current immutable object by setting a present value for the optionalstrategyattribute.final ImmutableGwtStepDtowithStrategy(Optional<? extends StrategyDto> optional) Copy the current immutable object by setting an optional value for thestrategyattribute.final ImmutableGwtStepDtowithSubSteps(GwtStepDto... elements) Copy the current immutable object with elements that replace the content ofsubSteps.final ImmutableGwtStepDtowithSubSteps(Iterable<? extends GwtStepDto> elements) Copy the current immutable object with elements that replace the content ofsubSteps.final ImmutableGwtStepDtoCopy the current immutable object by setting a present value for the optionalxRefattribute.final ImmutableGwtStepDtoCopy the current immutable object by setting an optional value for thexRefattribute.xRef()
-
Method Details
-
sentence
- Specified by:
sentencein interfaceGwtStepDto- Returns:
- The value of the
sentenceattribute
-
subSteps
- Specified by:
subStepsin interfaceGwtStepDto- Returns:
- The value of the
subStepsattribute
-
implementation
- Specified by:
implementationin interfaceGwtStepDto- Returns:
- The value of the
implementationattribute
-
strategy
- Specified by:
strategyin interfaceGwtStepDto- Returns:
- The value of the
strategyattribute
-
xRef
- Specified by:
xRefin interfaceGwtStepDto- Returns:
- The value of the
xRefattribute
-
withSentence
Copy the current immutable object by setting a present value for the optionalsentenceattribute.- Parameters:
value- The value for sentence- Returns:
- A modified copy or
thisif not changed
-
withSentence
Copy the current immutable object by setting an optional value for thesentenceattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for sentence- Returns:
- A modified copy or
thisif not changed
-
withSubSteps
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
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 or
thisif not changed
-
withImplementation
Copy the current immutable object by setting a present value for the optionalimplementationattribute.- Parameters:
value- The value for implementation- Returns:
- A modified copy or
thisif not changed
-
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 on the inner value is used to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for implementation- Returns:
- A modified copy or
thisif not changed
-
withStrategy
Copy the current immutable object by setting a present value for the optionalstrategyattribute.- Parameters:
value- The value for strategy- Returns:
- A modified copy or
thisif not changed
-
withStrategy
Copy the current immutable object by setting an optional value for thestrategyattribute. A shallow reference equality check on the inner value is used to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for strategy- Returns:
- A modified copy or
thisif not changed
-
withXRef
Copy the current immutable object by setting a present value for the optionalxRefattribute.- Parameters:
value- The value for xRef- Returns:
- A modified copy or
thisif not changed
-
withXRef
Copy the current immutable object by setting an optional value for thexRefattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for xRef- Returns:
- A modified copy or
thisif not changed
-
equals
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
Prints the immutable valueGwtStepDtowith attribute values. -
copyOf
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
Creates a builder forImmutableGwtStepDto.ImmutableGwtStepDto.builder() .sentence(Optional<String>) // optionalsentence.addSubSteps|addAllSubSteps(fr.enedis.chutney.scenario.api.raw.dto.GwtStepDto) //subStepselements .implementation(Optional<fr.enedis.chutney.scenario.api.raw.dto.GwtStepImplementationDto>) // optionalimplementation.strategy(Optional<fr.enedis.chutney.scenario.api.raw.dto.StrategyDto>) // optionalstrategy.xRef(Optional<String>) // optionalxRef.build();- Returns:
- A new ImmutableGwtStepDto builder
-