Record Class TicketCreateDTO
java.lang.Object
java.lang.Record
callofproject.dev.service.ticket.dto.TicketCreateDTO
public record TicketCreateDTO(UUID userId, String username, String title, String userEmail, String description)
extends Record
TicketCreateDTO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.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
-
TicketCreateDTO
public TicketCreateDTO(UUID userId, String username, String title, String userEmail, String description) Creates an instance of aTicketCreateDTO
record class.- Parameters:
userId
- the value for theuserId
record componentusername
- the value for theusername
record componenttitle
- the value for thetitle
record componentuserEmail
- the value for theuserEmail
record componentdescription
- the value for thedescription
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
-
userEmail
Returns the value of theuserEmail
record component.- Returns:
- the value of the
userEmail
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-