Class ImmutableGwtScenarioDto
java.lang.Object
fr.enedis.chutney.scenario.api.raw.dto.ImmutableGwtScenarioDto
- All Implemented Interfaces:
GwtScenarioDto
@Generated(from="GwtScenarioDto",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableGwtScenarioDto
extends Object
implements GwtScenarioDto
Immutable implementation of
GwtScenarioDto.
Use the builder to create immutable instances:
ImmutableGwtScenarioDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableGwtScenarioDto. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableGwtScenarioDto.static ImmutableGwtScenarioDtocopyOf(GwtScenarioDto instance) Creates an immutable copy of aGwtScenarioDtovalue.booleanThis instance is equal to all instances ofImmutableGwtScenarioDtothat have equal attribute values.givens()inthashCode()Computes a hash code from attributes:givens,when,thens.thens()toString()Prints the immutable valueGwtScenarioDtowith attribute values.when()final ImmutableGwtScenarioDtowithGivens(GwtStepDto... elements) Copy the current immutable object with elements that replace the content ofgivens.final ImmutableGwtScenarioDtowithGivens(Iterable<? extends GwtStepDto> elements) Copy the current immutable object with elements that replace the content ofgivens.final ImmutableGwtScenarioDtowithThens(GwtStepDto... elements) Copy the current immutable object with elements that replace the content ofthens.final ImmutableGwtScenarioDtowithThens(Iterable<? extends GwtStepDto> elements) Copy the current immutable object with elements that replace the content ofthens.final ImmutableGwtScenarioDtowithWhen(GwtStepDto value) Copy the current immutable object by setting a value for thewhenattribute.
-
Method Details
-
givens
- Specified by:
givensin interfaceGwtScenarioDto- Returns:
- The value of the
givensattribute
-
when
- Specified by:
whenin interfaceGwtScenarioDto- Returns:
- The value of the
whenattribute
-
thens
- Specified by:
thensin interfaceGwtScenarioDto- Returns:
- The value of the
thensattribute
-
withGivens
Copy the current immutable object with elements that replace the content ofgivens.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withGivens
Copy the current immutable object with elements that replace the content ofgivens. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of givens elements to set- Returns:
- A modified copy or
thisif not changed
-
withWhen
Copy the current immutable object by setting a value for thewhenattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for when- Returns:
- A modified copy or the
thisobject
-
withThens
Copy the current immutable object with elements that replace the content ofthens.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withThens
Copy the current immutable object with elements that replace the content ofthens. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of thens elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableGwtScenarioDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:givens,when,thens. -
toString
Prints the immutable valueGwtScenarioDtowith attribute values. -
copyOf
Creates an immutable copy of aGwtScenarioDtovalue. 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 GwtScenarioDto instance
-
builder
Creates a builder forImmutableGwtScenarioDto.ImmutableGwtScenarioDto.builder() .addGivens|addAllGivens(fr.enedis.chutney.scenario.api.raw.dto.GwtStepDto) //givenselements .when(fr.enedis.chutney.scenario.api.raw.dto.GwtStepDto) // requiredwhen.addThens|addAllThens(fr.enedis.chutney.scenario.api.raw.dto.GwtStepDto) //thenselements .build();- Returns:
- A new ImmutableGwtScenarioDto builder
-