Class ImmutableStrategyDto
java.lang.Object
com.chutneytesting.component.scenario.api.dto.ImmutableStrategyDto
- All Implemented Interfaces:
StrategyDto
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableStrategyDto
extends Object
implements StrategyDto
Immutable implementation of
StrategyDto.
Use the builder to create immutable instances:
ImmutableStrategyDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableStrategyDto. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableStrategyDto.Builderbuilder()Creates a builder forImmutableStrategyDto.static ImmutableStrategyDtocopyOf(StrategyDto instance) Creates an immutable copy of aStrategyDtovalue.booleanThis instance is equal to all instances ofImmutableStrategyDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:type,parameters.toString()Prints the immutable valueStrategyDtowith attribute values.type()final ImmutableStrategyDtowithParameters(Map<String, ? extends Object> entries) Copy the current immutable object by replacing theparametersmap with the specified map.final ImmutableStrategyDtoCopy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
type
- Specified by:
typein interfaceStrategyDto- Returns:
- The value of the
typeattribute
-
parameters
- Specified by:
parametersin interfaceStrategyDto- Returns:
- The value of the
parametersattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
withParameters
Copy the current immutable object by replacing theparametersmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the parameters map- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableStrategyDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,parameters. -
toString
Prints the immutable valueStrategyDtowith attribute values. -
copyOf
Creates an immutable copy of aStrategyDtovalue. 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 StrategyDto instance
-
builder
Creates a builder forImmutableStrategyDto.ImmutableStrategyDto.builder() .type(String) // optionaltype.putParameters|putAllParameters(String => Object) //parametersmappings .build();- Returns:
- A new ImmutableStrategyDto builder
-