Class ImmutableGwtTestCaseDto
- java.lang.Object
-
- com.chutneytesting.scenario.api.raw.dto.ImmutableGwtTestCaseDto
-
- All Implemented Interfaces:
GwtTestCaseDto
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableGwtTestCaseDto extends Object implements GwtTestCaseDto
Immutable implementation ofGwtTestCaseDto.Use the builder to create immutable instances:
ImmutableGwtTestCaseDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableGwtTestCaseDto.BuilderBuilds instances of typeImmutableGwtTestCaseDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringauthor()static ImmutableGwtTestCaseDto.Builderbuilder()Creates a builder forImmutableGwtTestCaseDto.static ImmutableGwtTestCaseDtocopyOf(GwtTestCaseDto instance)Creates an immutable copy of aGwtTestCaseDtovalue.Optional<Instant>creationDate()Optional<String>description()booleanequals(Object another)This instance is equal to all instances ofImmutableGwtTestCaseDtothat have equal attribute values.Map<String,String>executionParameters()List<ExecutionSummaryDto>executions()inthashCode()Computes a hash code from attributes:id,title,description,repositorySource,tags,executions,creationDate,scenario,executionParameters,author,updateDate,version.Optional<String>id()Optional<String>repositorySource()GwtScenarioDtoscenario()List<String>tags()Stringtitle()StringtoString()Prints the immutable valueGwtTestCaseDtowith attribute values.InstantupdateDate()Integerversion()ImmutableGwtTestCaseDtowithAuthor(String value)Copy the current immutable object by setting a value for theauthorattribute.ImmutableGwtTestCaseDtowithCreationDate(Instant value)Copy the current immutable object by setting a present value for the optionalcreationDateattribute.ImmutableGwtTestCaseDtowithCreationDate(Optional<? extends Instant> optional)Copy the current immutable object by setting an optional value for thecreationDateattribute.ImmutableGwtTestCaseDtowithDescription(String value)Copy the current immutable object by setting a present value for the optionaldescriptionattribute.ImmutableGwtTestCaseDtowithDescription(Optional<String> optional)Copy the current immutable object by setting an optional value for thedescriptionattribute.ImmutableGwtTestCaseDtowithExecutionParameters(Map<String,? extends String> entries)Copy the current immutable object by replacing theexecutionParametersmap with the specified map.ImmutableGwtTestCaseDtowithExecutions(ExecutionSummaryDto... elements)Copy the current immutable object with elements that replace the content ofexecutions.ImmutableGwtTestCaseDtowithExecutions(Iterable<? extends ExecutionSummaryDto> elements)Copy the current immutable object with elements that replace the content ofexecutions.ImmutableGwtTestCaseDtowithId(String value)Copy the current immutable object by setting a present value for the optionalidattribute.ImmutableGwtTestCaseDtowithId(Optional<String> optional)Copy the current immutable object by setting an optional value for theidattribute.ImmutableGwtTestCaseDtowithRepositorySource(String value)Copy the current immutable object by setting a present value for the optionalrepositorySourceattribute.ImmutableGwtTestCaseDtowithRepositorySource(Optional<String> optional)Copy the current immutable object by setting an optional value for therepositorySourceattribute.ImmutableGwtTestCaseDtowithScenario(GwtScenarioDto value)Copy the current immutable object by setting a value for thescenarioattribute.ImmutableGwtTestCaseDtowithTags(Iterable<String> elements)Copy the current immutable object with elements that replace the content oftags.ImmutableGwtTestCaseDtowithTags(String... elements)Copy the current immutable object with elements that replace the content oftags.ImmutableGwtTestCaseDtowithTitle(String value)Copy the current immutable object by setting a value for thetitleattribute.ImmutableGwtTestCaseDtowithUpdateDate(Instant value)Copy the current immutable object by setting a value for theupdateDateattribute.ImmutableGwtTestCaseDtowithVersion(Integer value)Copy the current immutable object by setting a value for theversionattribute.
-
-
-
Method Detail
-
id
public Optional<String> id()
- Specified by:
idin interfaceGwtTestCaseDto- Returns:
- The value of the
idattribute
-
title
public String title()
- Specified by:
titlein interfaceGwtTestCaseDto- Returns:
- The value of the
titleattribute
-
description
public Optional<String> description()
- Specified by:
descriptionin interfaceGwtTestCaseDto- Returns:
- The value of the
descriptionattribute
-
repositorySource
public Optional<String> repositorySource()
- Specified by:
repositorySourcein interfaceGwtTestCaseDto- Returns:
- The value of the
repositorySourceattribute
-
tags
public List<String> tags()
- Specified by:
tagsin interfaceGwtTestCaseDto- Returns:
- The value of the
tagsattribute
-
executions
public List<ExecutionSummaryDto> executions()
- Specified by:
executionsin interfaceGwtTestCaseDto- Returns:
- The value of the
executionsattribute
-
creationDate
public Optional<Instant> creationDate()
- Specified by:
creationDatein interfaceGwtTestCaseDto- Returns:
- The value of the
creationDateattribute
-
scenario
public GwtScenarioDto scenario()
- Specified by:
scenarioin interfaceGwtTestCaseDto- Returns:
- The value of the
scenarioattribute
-
executionParameters
public Map<String,String> executionParameters()
- Specified by:
executionParametersin interfaceGwtTestCaseDto- Returns:
- The value of the
executionParametersattribute
-
author
public String author()
- Specified by:
authorin interfaceGwtTestCaseDto- Returns:
- The value of the
authorattribute
-
updateDate
public Instant updateDate()
- Specified by:
updateDatein interfaceGwtTestCaseDto- Returns:
- The value of the
updateDateattribute
-
version
public Integer version()
- Specified by:
versionin interfaceGwtTestCaseDto- Returns:
- The value of the
versionattribute
-
withId
public final ImmutableGwtTestCaseDto withId(String value)
Copy the current immutable object by setting a present value for the optionalidattribute.- Parameters:
value- The value for id- Returns:
- A modified copy of
thisobject
-
withId
public final ImmutableGwtTestCaseDto withId(Optional<String> optional)
Copy the current immutable object by setting an optional value for theidattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for id- Returns:
- A modified copy of
thisobject
-
withTitle
public final ImmutableGwtTestCaseDto withTitle(String value)
Copy the current immutable object by setting a value for thetitleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for title- Returns:
- A modified copy of the
thisobject
-
withDescription
public final ImmutableGwtTestCaseDto withDescription(String value)
Copy the current immutable object by setting a present value for the optionaldescriptionattribute.- Parameters:
value- The value for description- Returns:
- A modified copy of
thisobject
-
withDescription
public final ImmutableGwtTestCaseDto withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for thedescriptionattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for description- Returns:
- A modified copy of
thisobject
-
withRepositorySource
public final ImmutableGwtTestCaseDto withRepositorySource(String value)
Copy the current immutable object by setting a present value for the optionalrepositorySourceattribute.- Parameters:
value- The value for repositorySource- Returns:
- A modified copy of
thisobject
-
withRepositorySource
public final ImmutableGwtTestCaseDto withRepositorySource(Optional<String> optional)
Copy the current immutable object by setting an optional value for therepositorySourceattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for repositorySource- Returns:
- A modified copy of
thisobject
-
withTags
public final ImmutableGwtTestCaseDto withTags(String... elements)
Copy the current immutable object with elements that replace the content oftags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withTags
public final ImmutableGwtTestCaseDto withTags(Iterable<String> elements)
Copy the current immutable object with elements that replace the content oftags. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of tags elements to set- Returns:
- A modified copy of
thisobject
-
withExecutions
public final ImmutableGwtTestCaseDto withExecutions(ExecutionSummaryDto... elements)
Copy the current immutable object with elements that replace the content ofexecutions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withExecutions
public final ImmutableGwtTestCaseDto withExecutions(Iterable<? extends ExecutionSummaryDto> elements)
Copy the current immutable object with elements that replace the content ofexecutions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of executions elements to set- Returns:
- A modified copy of
thisobject
-
withCreationDate
public final ImmutableGwtTestCaseDto withCreationDate(Instant value)
Copy the current immutable object by setting a present value for the optionalcreationDateattribute.- Parameters:
value- The value for creationDate- Returns:
- A modified copy of
thisobject
-
withCreationDate
public final ImmutableGwtTestCaseDto withCreationDate(Optional<? extends Instant> optional)
Copy the current immutable object by setting an optional value for thecreationDateattribute. 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 creationDate- Returns:
- A modified copy of
thisobject
-
withScenario
public final ImmutableGwtTestCaseDto withScenario(GwtScenarioDto value)
Copy the current immutable object by setting a value for thescenarioattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for scenario- Returns:
- A modified copy of the
thisobject
-
withExecutionParameters
public final ImmutableGwtTestCaseDto withExecutionParameters(Map<String,? extends String> entries)
Copy the current immutable object by replacing theexecutionParametersmap 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 executionParameters map- Returns:
- A modified copy of
thisobject
-
withAuthor
public final ImmutableGwtTestCaseDto withAuthor(String value)
Copy the current immutable object by setting a value for theauthorattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for author- Returns:
- A modified copy of the
thisobject
-
withUpdateDate
public final ImmutableGwtTestCaseDto withUpdateDate(Instant value)
Copy the current immutable object by setting a value for theupdateDateattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for updateDate- Returns:
- A modified copy of the
thisobject
-
withVersion
public final ImmutableGwtTestCaseDto withVersion(Integer value)
Copy the current immutable object by setting a value for theversionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for version- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableGwtTestCaseDtothat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,title,description,repositorySource,tags,executions,creationDate,scenario,executionParameters,author,updateDate,version.
-
toString
public String toString()
Prints the immutable valueGwtTestCaseDtowith attribute values.
-
copyOf
public static ImmutableGwtTestCaseDto copyOf(GwtTestCaseDto instance)
Creates an immutable copy of aGwtTestCaseDtovalue. 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 GwtTestCaseDto instance
-
builder
public static ImmutableGwtTestCaseDto.Builder builder()
Creates a builder forImmutableGwtTestCaseDto.ImmutableGwtTestCaseDto.builder() .id(String) // optionalid.title(String) // requiredtitle.description(String) // optionaldescription.repositorySource(String) // optionalrepositorySource.addTags|addAllTags(String) //tagselements .addExecutions|addAllExecutions(com.chutneytesting.execution.api.ExecutionSummaryDto) //executionselements .creationDate(java.time.Instant) // optionalcreationDate.scenario(com.chutneytesting.scenario.api.raw.dto.GwtScenarioDto) // requiredscenario.putExecutionParameters|putAllExecutionParameters(String => String) //executionParametersmappings .author(String) // optionalauthor.updateDate(java.time.Instant) // optionalupdateDate.version(Integer) // optionalversion.build();- Returns:
- A new ImmutableGwtTestCaseDto builder
-
-