Class ImmutableGwtTestCaseMetadataDto
java.lang.Object
com.chutneytesting.scenario.api.raw.dto.ImmutableGwtTestCaseMetadataDto
- All Implemented Interfaces:
GwtTestCaseMetadataDto
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableGwtTestCaseMetadataDto
extends Object
implements GwtTestCaseMetadataDto
Immutable implementation of
GwtTestCaseMetadataDto.
Use the builder to create immutable instances:
ImmutableGwtTestCaseMetadataDto.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableGwtTestCaseMetadataDto. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableGwtTestCaseMetadataDto.copyOf(GwtTestCaseMetadataDto instance) Creates an immutable copy of aGwtTestCaseMetadataDtovalue.booleanThis instance is equal to all instances ofImmutableGwtTestCaseMetadataDtothat have equal attribute values.com.google.common.collect.ImmutableList<ExecutionSummaryDto>inthashCode()Computes a hash code from attributes:id,title,description,repositorySource,tags,executions,creationDate,updateDate.id()com.google.common.collect.ImmutableList<String>tags()title()toString()Prints the immutable valueGwtTestCaseMetadataDtowith attribute values.withCreationDate(Instant value) Copy the current immutable object by setting a value for thecreationDateattribute.withDescription(String value) Copy the current immutable object by setting a present value for the optionaldescriptionattribute.withDescription(Optional<String> optional) Copy the current immutable object by setting an optional value for thedescriptionattribute.withExecutions(ExecutionSummaryDto... elements) Copy the current immutable object with elements that replace the content ofexecutions.withExecutions(Iterable<? extends ExecutionSummaryDto> elements) Copy the current immutable object with elements that replace the content ofexecutions.Copy the current immutable object by setting a present value for the optionalidattribute.Copy the current immutable object by setting an optional value for theidattribute.withRepositorySource(String value) Copy the current immutable object by setting a present value for the optionalrepositorySourceattribute.withRepositorySource(Optional<String> optional) Copy the current immutable object by setting an optional value for therepositorySourceattribute.Copy the current immutable object with elements that replace the content oftags.Copy the current immutable object with elements that replace the content oftags.Copy the current immutable object by setting a value for thetitleattribute.withUpdateDate(Instant value) Copy the current immutable object by setting a value for theupdateDateattribute.
-
Method Details
-
id
- Specified by:
idin interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
idattribute
-
title
- Specified by:
titlein interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
titleattribute
-
description
- Specified by:
descriptionin interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
descriptionattribute
-
repositorySource
- Specified by:
repositorySourcein interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
repositorySourceattribute
-
tags
- Specified by:
tagsin interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
tagsattribute
-
executions
- Specified by:
executionsin interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
executionsattribute
-
creationDate
- Specified by:
creationDatein interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
creationDateattribute
-
updateDate
- Specified by:
updateDatein interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
updateDateattribute
-
withId
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
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
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
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
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
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
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
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
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
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 ImmutableGwtTestCaseMetadataDto 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
Copy the current immutable object by setting a value for thecreationDateattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for creationDate- Returns:
- A modified copy of the
thisobject
-
withUpdateDate
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
-
equals
This instance is equal to all instances ofImmutableGwtTestCaseMetadataDtothat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,title,description,repositorySource,tags,executions,creationDate,updateDate. -
toString
Prints the immutable valueGwtTestCaseMetadataDtowith attribute values. -
copyOf
Creates an immutable copy of aGwtTestCaseMetadataDtovalue. 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 GwtTestCaseMetadataDto instance
-
builder
Creates a builder forImmutableGwtTestCaseMetadataDto.ImmutableGwtTestCaseMetadataDto.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.updateDate(java.time.Instant) // optionalupdateDate.build();- Returns:
- A new ImmutableGwtTestCaseMetadataDto builder
-