Package tw.teddysoft.ezspec.report
Record Class StoryDto
java.lang.Object
java.lang.Record
tw.teddysoft.ezspec.report.StoryDto
public record StoryDto(String keyword, String name, String description, int order, BackgroundDto backgroundDto, List<SpecificationElementDto> specificationElementDtos)
extends Record
-
Constructor Summary
ConstructorDescriptionStoryDto
(String keyword, String name, String description, int order, BackgroundDto backgroundDto, List<SpecificationElementDto> specificationElementDtos) Creates an instance of aStoryDto
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundDto
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.keyword()
Returns the value of thekeyword
record component.name()
Returns the value of thename
record component.static StoryDto
int
order()
Returns the value of theorder
record component.Returns the value of thespecificationElementDtos
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
StoryDto
public StoryDto(String keyword, String name, String description, int order, BackgroundDto backgroundDto, List<SpecificationElementDto> specificationElementDtos) Creates an instance of aStoryDto
record class.- Parameters:
keyword
- the value for thekeyword
record componentname
- the value for thename
record componentdescription
- the value for thedescription
record componentorder
- the value for theorder
record componentbackgroundDto
- the value for thebackgroundDto
record componentspecificationElementDtos
- the value for thespecificationElementDtos
record component
-
-
Method Details
-
of
-
of
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
keyword
Returns the value of thekeyword
record component.- Returns:
- the value of the
keyword
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
order
public int order()Returns the value of theorder
record component.- Returns:
- the value of the
order
record component
-
backgroundDto
Returns the value of thebackgroundDto
record component.- Returns:
- the value of the
backgroundDto
record component
-
specificationElementDtos
Returns the value of thespecificationElementDtos
record component.- Returns:
- the value of the
specificationElementDtos
record component
-