Package callofproject.dev.project.dto
Record Class ParticipantRequestDTO
java.lang.Object
java.lang.Record
callofproject.dev.project.dto.ParticipantRequestDTO
public record ParticipantRequestDTO(UUID requestId, String notificationId, boolean isAccepted)
extends Record
ParticipantRequestDTO
-
Constructor Summary
ConstructorsConstructorDescriptionParticipantRequestDTO
(UUID requestId, String notificationId, boolean isAccepted) Creates an instance of aParticipantRequestDTO
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisAccepted
record component.Returns the value of thenotificationId
record component.Returns the value of therequestId
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ParticipantRequestDTO
Creates an instance of aParticipantRequestDTO
record class.- Parameters:
requestId
- the value for therequestId
record componentnotificationId
- the value for thenotificationId
record componentisAccepted
- the value for theisAccepted
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
requestId
Returns the value of therequestId
record component.- Returns:
- the value of the
requestId
record component
-
notificationId
Returns the value of thenotificationId
record component.- Returns:
- the value of the
notificationId
record component
-
isAccepted
public boolean isAccepted()Returns the value of theisAccepted
record component.- Returns:
- the value of the
isAccepted
record component
-