Record Class TicketUserViewDTO
java.lang.Object
java.lang.Record
callofproject.dev.service.ticket.dto.TicketUserViewDTO
- Record Components:
userId
-username
-title
-description
-answer
-userEmail
-feedbackDeadline
-
public record TicketUserViewDTO(UUID userId, String username, String title, String description, String answer, String userEmail, LocalDate feedbackDeadline)
extends Record
The ticket user view DTO.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanswer()
Returns the value of theanswer
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefeedbackDeadline
record component.final int
hashCode()
Returns a hash code value for this object.title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuserEmail
record component.userId()
Returns the value of theuserId
record component.username()
Returns the value of theusername
record component.
-
Constructor Details
-
TicketUserViewDTO
public TicketUserViewDTO(UUID userId, String username, String title, String description, String answer, String userEmail, LocalDate feedbackDeadline) Creates an instance of aTicketUserViewDTO
record class.- Parameters:
userId
- the value for theuserId
record componentusername
- the value for theusername
record componenttitle
- the value for thetitle
record componentdescription
- the value for thedescription
record componentanswer
- the value for theanswer
record componentuserEmail
- the value for theuserEmail
record componentfeedbackDeadline
- the value for thefeedbackDeadline
record component
-
-
Method Details
-
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)
. -
userId
Returns the value of theuserId
record component.- Returns:
- the value of the
userId
record component
-
username
Returns the value of theusername
record component.- Returns:
- the value of the
username
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
answer
Returns the value of theanswer
record component.- Returns:
- the value of the
answer
record component
-
userEmail
Returns the value of theuserEmail
record component.- Returns:
- the value of the
userEmail
record component
-
feedbackDeadline
Returns the value of thefeedbackDeadline
record component.- Returns:
- the value of the
feedbackDeadline
record component
-