Package com.chutneytesting.jira.api
Class ImmutableJiraTestExecutionDto
- java.lang.Object
-
- com.chutneytesting.jira.api.ImmutableJiraTestExecutionDto
-
- All Implemented Interfaces:
JiraTestExecutionDto
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableJiraTestExecutionDto extends Object implements JiraTestExecutionDto
Immutable implementation ofJiraTestExecutionDto.Use the builder to create immutable instances:
ImmutableJiraTestExecutionDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableJiraTestExecutionDto.BuilderBuilds instances of typeImmutableJiraTestExecutionDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableJiraTestExecutionDto.Builderbuilder()Creates a builder forImmutableJiraTestExecutionDto.static ImmutableJiraTestExecutionDtocopyOf(JiraTestExecutionDto instance)Creates an immutable copy of aJiraTestExecutionDtovalue.booleanequals(Object another)This instance is equal to all instances ofImmutableJiraTestExecutionDtothat have equal attribute values.inthashCode()Computes a hash code from attributes:id,jiraScenarios.Stringid()List<JiraDto>jiraScenarios()StringtoString()Prints the immutable valueJiraTestExecutionDtowith attribute values.ImmutableJiraTestExecutionDtowithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableJiraTestExecutionDtowithJiraScenarios(JiraDto... elements)Copy the current immutable object with elements that replace the content ofjiraScenarios.ImmutableJiraTestExecutionDtowithJiraScenarios(Iterable<? extends JiraDto> elements)Copy the current immutable object with elements that replace the content ofjiraScenarios.
-
-
-
Method Detail
-
id
public String id()
- Specified by:
idin interfaceJiraTestExecutionDto- Returns:
- The value of the
idattribute
-
jiraScenarios
public List<JiraDto> jiraScenarios()
- Specified by:
jiraScenariosin interfaceJiraTestExecutionDto- Returns:
- The value of the
jiraScenariosattribute
-
withId
public final ImmutableJiraTestExecutionDto withId(String value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withJiraScenarios
public final ImmutableJiraTestExecutionDto withJiraScenarios(JiraDto... elements)
Copy the current immutable object with elements that replace the content ofjiraScenarios.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withJiraScenarios
public final ImmutableJiraTestExecutionDto withJiraScenarios(Iterable<? extends JiraDto> elements)
Copy the current immutable object with elements that replace the content ofjiraScenarios. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of jiraScenarios elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableJiraTestExecutionDtothat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,jiraScenarios.
-
toString
public String toString()
Prints the immutable valueJiraTestExecutionDtowith attribute values.
-
copyOf
public static ImmutableJiraTestExecutionDto copyOf(JiraTestExecutionDto instance)
Creates an immutable copy of aJiraTestExecutionDtovalue. 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 JiraTestExecutionDto instance
-
builder
public static ImmutableJiraTestExecutionDto.Builder builder()
Creates a builder forImmutableJiraTestExecutionDto.ImmutableJiraTestExecutionDto.builder() .id(String) // requiredid.addJiraScenarios|addAllJiraScenarios(com.chutneytesting.jira.api.JiraDto) //jiraScenarioselements .build();- Returns:
- A new ImmutableJiraTestExecutionDto builder
-
-