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 aParticipantRequestDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisAcceptedrecord component.Returns the value of thenotificationIdrecord component.Returns the value of therequestIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParticipantRequestDTO
Creates an instance of aParticipantRequestDTOrecord class.- Parameters:
requestId- the value for therequestIdrecord componentnotificationId- the value for thenotificationIdrecord componentisAccepted- the value for theisAcceptedrecord 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 therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
notificationId
Returns the value of thenotificationIdrecord component.- Returns:
- the value of the
notificationIdrecord component
-
isAccepted
public boolean isAccepted()Returns the value of theisAcceptedrecord component.- Returns:
- the value of the
isAcceptedrecord component
-