Package io.mateu.dtos
Record Class ResultDto
java.lang.Object
java.lang.Record
io.mateu.dtos.ResultDto
- Record Components:
title- The titleresultType- The result dataType: error, success, infomessage- The messageinterestingLinks- A list of interesting linksnowTo- The preferred destinationleftSideImageUrl- An image to be shown on the left side
- All Implemented Interfaces:
ComponentMetadataDto
public record ResultDto(String title, ResultTypeDto resultType, String message, List<DestinationDto> interestingLinks, DestinationDto nowTo, String leftSideImageUrl, ServerSideObjectDto actionHandler)
extends Record
implements ComponentMetadataDto
Result metadata
-
Constructor Summary
ConstructorsConstructorDescriptionResultDto(String title, ResultTypeDto resultType, String message, List<DestinationDto> interestingLinks, DestinationDto nowTo, String leftSideImageUrl, ServerSideObjectDto actionHandler) Creates an instance of aResultDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionHandlerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinterestingLinksrecord component.Returns the value of theleftSideImageUrlrecord component.message()Returns the value of themessagerecord component.nowTo()Returns the value of thenowTorecord component.Returns the value of theresultTyperecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResultDto
public ResultDto(String title, ResultTypeDto resultType, String message, List<DestinationDto> interestingLinks, DestinationDto nowTo, String leftSideImageUrl, ServerSideObjectDto actionHandler) Creates an instance of aResultDtorecord class.- Parameters:
title- the value for thetitlerecord componentresultType- the value for theresultTyperecord componentmessage- the value for themessagerecord componentinterestingLinks- the value for theinterestingLinksrecord componentnowTo- the value for thenowTorecord componentleftSideImageUrl- the value for theleftSideImageUrlrecord componentactionHandler- the value for theactionHandlerrecord component
-
-
Method Details
-
interestingLinks
Returns the value of theinterestingLinksrecord component.- Returns:
- the value of the
interestingLinksrecord component
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
resultType
Returns the value of theresultTyperecord component.- Returns:
- the value of the
resultTyperecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
nowTo
Returns the value of thenowTorecord component.- Returns:
- the value of the
nowTorecord component
-
leftSideImageUrl
Returns the value of theleftSideImageUrlrecord component.- Returns:
- the value of the
leftSideImageUrlrecord component
-
actionHandler
Returns the value of theactionHandlerrecord component.- Returns:
- the value of the
actionHandlerrecord component
-