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 theanswerrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeedbackDeadlinerecord component.final inthashCode()Returns a hash code value for this object.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserEmailrecord component.userId()Returns the value of theuserIdrecord component.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
TicketUserViewDTO
public TicketUserViewDTO(UUID userId, String username, String title, String description, String answer, String userEmail, LocalDate feedbackDeadline) Creates an instance of aTicketUserViewDTOrecord class.- Parameters:
userId- the value for theuserIdrecord componentusername- the value for theusernamerecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentanswer- the value for theanswerrecord componentuserEmail- the value for theuserEmailrecord componentfeedbackDeadline- the value for thefeedbackDeadlinerecord 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 theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
answer
Returns the value of theanswerrecord component.- Returns:
- the value of the
answerrecord component
-
userEmail
Returns the value of theuserEmailrecord component.- Returns:
- the value of the
userEmailrecord component
-
feedbackDeadline
Returns the value of thefeedbackDeadlinerecord component.- Returns:
- the value of the
feedbackDeadlinerecord component
-