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 aParticipantStatusDTO
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.callofproject.dev.data.project.entity.User
owner()
Returns the value of theowner
record component.callofproject.dev.data.project.entity.Project
project()
Returns the value of theproject
record component.final String
toString()
Returns a string representation of this record class.callofproject.dev.data.project.entity.User
user()
Returns the value of theuser
record 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 aParticipantStatusDTO
record class.- Parameters:
project
- the value for theproject
record componentuser
- the value for theuser
record componentowner
- the value for theowner
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 '=='. -
project
public callofproject.dev.data.project.entity.Project project()Returns the value of theproject
record component.- Returns:
- the value of the
project
record component
-
user
public callofproject.dev.data.project.entity.User user()Returns the value of theuser
record component.- Returns:
- the value of the
user
record component
-
owner
public callofproject.dev.data.project.entity.User owner()Returns the value of theowner
record component.- Returns:
- the value of the
owner
record component
-
isAccepted
public boolean isAccepted()Returns the value of theisAccepted
record component.- Returns:
- the value of the
isAccepted
record component
-