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 ofGwtTestCaseMetadataDto.Use the builder to create immutable instances:
ImmutableGwtTestCaseMetadataDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableGwtTestCaseMetadataDto.BuilderBuilds instances of typeImmutableGwtTestCaseMetadataDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableGwtTestCaseMetadataDto.Builderbuilder()Creates a builder forImmutableGwtTestCaseMetadataDto.static ImmutableGwtTestCaseMetadataDtocopyOf(GwtTestCaseMetadataDto instance)Creates an immutable copy of aGwtTestCaseMetadataDtovalue.InstantcreationDate()Optional<String>description()booleanequals(Object another)This instance is equal to all instances ofImmutableGwtTestCaseMetadataDtothat have equal attribute values.com.google.common.collect.ImmutableList<ExecutionSummaryDto>executions()inthashCode()Computes a hash code from attributes:id,title,description,repositorySource,tags,executions,creationDate.Optional<String>id()Optional<String>repositorySource()com.google.common.collect.ImmutableList<String>tags()Stringtitle()StringtoString()Prints the immutable valueGwtTestCaseMetadataDtowith attribute values.ImmutableGwtTestCaseMetadataDtowithCreationDate(Instant value)Copy the current immutable object by setting a value for thecreationDateattribute.ImmutableGwtTestCaseMetadataDtowithDescription(String value)Copy the current immutable object by setting a present value for the optionaldescriptionattribute.ImmutableGwtTestCaseMetadataDtowithDescription(Optional<String> optional)Copy the current immutable object by setting an optional value for thedescriptionattribute.ImmutableGwtTestCaseMetadataDtowithExecutions(ExecutionSummaryDto... elements)Copy the current immutable object with elements that replace the content ofexecutions.ImmutableGwtTestCaseMetadataDtowithExecutions(Iterable<? extends ExecutionSummaryDto> elements)Copy the current immutable object with elements that replace the content ofexecutions.ImmutableGwtTestCaseMetadataDtowithId(String value)Copy the current immutable object by setting a present value for the optionalidattribute.ImmutableGwtTestCaseMetadataDtowithId(Optional<String> optional)Copy the current immutable object by setting an optional value for theidattribute.ImmutableGwtTestCaseMetadataDtowithRepositorySource(String value)Copy the current immutable object by setting a present value for the optionalrepositorySourceattribute.ImmutableGwtTestCaseMetadataDtowithRepositorySource(Optional<String> optional)Copy the current immutable object by setting an optional value for therepositorySourceattribute.ImmutableGwtTestCaseMetadataDtowithTags(Iterable<String> elements)Copy the current immutable object with elements that replace the content oftags.ImmutableGwtTestCaseMetadataDtowithTags(String... elements)Copy the current immutable object with elements that replace the content oftags.ImmutableGwtTestCaseMetadataDtowithTitle(String value)Copy the current immutable object by setting a value for thetitleattribute.
-
-
-
Method Detail
-
id
public Optional<String> id()
- Specified by:
idin interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
idattribute
-
title
public String title()
- Specified by:
titlein interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
titleattribute
-
description
public Optional<String> description()
- Specified by:
descriptionin interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
descriptionattribute
-
repositorySource
public Optional<String> repositorySource()
- Specified by:
repositorySourcein interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
repositorySourceattribute
-
tags
public com.google.common.collect.ImmutableList<String> tags()
- Specified by:
tagsin interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
tagsattribute
-
executions
public com.google.common.collect.ImmutableList<ExecutionSummaryDto> executions()
- Specified by:
executionsin interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
executionsattribute
-
creationDate
public Instant creationDate()
- Specified by:
creationDatein interfaceGwtTestCaseMetadataDto- Returns:
- The value of the
creationDateattribute
-
withId
public final ImmutableGwtTestCaseMetadataDto 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 ImmutableGwtTestCaseMetadataDto 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 ImmutableGwtTestCaseMetadataDto 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 ImmutableGwtTestCaseMetadataDto 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 ImmutableGwtTestCaseMetadataDto 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 ImmutableGwtTestCaseMetadataDto 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 ImmutableGwtTestCaseMetadataDto 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 ImmutableGwtTestCaseMetadataDto 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 ImmutableGwtTestCaseMetadataDto 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 ImmutableGwtTestCaseMetadataDto 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 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
public final ImmutableGwtTestCaseMetadataDto withCreationDate(Instant value)
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
-
equals
public boolean equals(@Nullable Object another)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.
-
toString
public String toString()
Prints the immutable valueGwtTestCaseMetadataDtowith attribute values.
-
copyOf
public static ImmutableGwtTestCaseMetadataDto copyOf(GwtTestCaseMetadataDto instance)
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
public static ImmutableGwtTestCaseMetadataDto.Builder 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.build();- Returns:
- A new ImmutableGwtTestCaseMetadataDto builder
-
-