Package callofproject.dev.project.dto
Record Class ParticipantStatusDTO
java.lang.Object
java.lang.Record
callofproject.dev.project.dto.ParticipantStatusDTO
public record ParticipantStatusDTO(callofproject.dev.data.project.entity.Project project, callofproject.dev.data.project.entity.User user, callofproject.dev.data.project.entity.User owner, boolean isAccepted)
extends Record
ParticipantStatusDTO
-
Constructor Summary
ConstructorsConstructorDescriptionParticipantStatusDTO(callofproject.dev.data.project.entity.Project project, callofproject.dev.data.project.entity.User user, callofproject.dev.data.project.entity.User owner, boolean isAccepted) Creates an instance of aParticipantStatusDTOrecord 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.callofproject.dev.data.project.entity.Userowner()Returns the value of theownerrecord component.callofproject.dev.data.project.entity.Projectproject()Returns the value of theprojectrecord component.final StringtoString()Returns a string representation of this record class.callofproject.dev.data.project.entity.Useruser()Returns the value of theuserrecord component.
-
Constructor Details
-
ParticipantStatusDTO
public ParticipantStatusDTO(callofproject.dev.data.project.entity.Project project, callofproject.dev.data.project.entity.User user, callofproject.dev.data.project.entity.User owner, boolean isAccepted) Creates an instance of aParticipantStatusDTOrecord class.- Parameters:
project- the value for theprojectrecord componentuser- the value for theuserrecord componentowner- the value for theownerrecord 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 '=='. -
project
public callofproject.dev.data.project.entity.Project project()Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-
user
public callofproject.dev.data.project.entity.User user()Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
owner
public callofproject.dev.data.project.entity.User owner()Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
isAccepted
public boolean isAccepted()Returns the value of theisAcceptedrecord component.- Returns:
- the value of the
isAcceptedrecord component
-