Package callofproject.dev.project.dto
Record Class UserDTO
java.lang.Object
java.lang.Record
callofproject.dev.project.dto.UserDTO
public record UserDTO(UUID userId, String username, String email, String firstName, String middleName, String lastName, callofproject.dev.data.common.enums.EOperation operation, String password, Set<callofproject.dev.data.project.entity.Role> roles, LocalDateTime deletedAt, int ownerProjectCount, int participantProjectCount, int totalProjectCount)
extends Record
UserDTO
-
Constructor Summary
ConstructorsConstructorDescriptionUserDTO
(UUID userId, String username, String email, String firstName, String middleName, String lastName, callofproject.dev.data.common.enums.EOperation operation, String password, Set<callofproject.dev.data.project.entity.Role> roles, LocalDateTime deletedAt, int ownerProjectCount, int participantProjectCount, int totalProjectCount) Creates an instance of aUserDTO
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeletedAt
record component.email()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefirstName
record component.final int
hashCode()
Returns a hash code value for this object.lastName()
Returns the value of thelastName
record component.Returns the value of themiddleName
record component.callofproject.dev.data.common.enums.EOperation
Returns the value of theoperation
record component.int
Returns the value of theownerProjectCount
record component.int
Returns the value of theparticipantProjectCount
record component.password()
Returns the value of thepassword
record component.Set<callofproject.dev.data.project.entity.Role>
roles()
Returns the value of theroles
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of thetotalProjectCount
record component.userId()
Returns the value of theuserId
record component.username()
Returns the value of theusername
record component.
-
Constructor Details
-
UserDTO
public UserDTO(UUID userId, String username, String email, String firstName, String middleName, String lastName, callofproject.dev.data.common.enums.EOperation operation, String password, Set<callofproject.dev.data.project.entity.Role> roles, LocalDateTime deletedAt, int ownerProjectCount, int participantProjectCount, int totalProjectCount) Creates an instance of aUserDTO
record class.- Parameters:
userId
- the value for theuserId
record componentusername
- the value for theusername
record componentemail
- the value for theemail
record componentfirstName
- the value for thefirstName
record componentmiddleName
- the value for themiddleName
record componentlastName
- the value for thelastName
record componentoperation
- the value for theoperation
record componentpassword
- the value for thepassword
record componentroles
- the value for theroles
record componentdeletedAt
- the value for thedeletedAt
record componentownerProjectCount
- the value for theownerProjectCount
record componentparticipantProjectCount
- the value for theparticipantProjectCount
record componenttotalProjectCount
- the value for thetotalProjectCount
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 '=='. -
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
-
email
Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-
firstName
Returns the value of thefirstName
record component.- Returns:
- the value of the
firstName
record component
-
middleName
Returns the value of themiddleName
record component.- Returns:
- the value of the
middleName
record component
-
lastName
Returns the value of thelastName
record component.- Returns:
- the value of the
lastName
record component
-
operation
public callofproject.dev.data.common.enums.EOperation operation()Returns the value of theoperation
record component.- Returns:
- the value of the
operation
record component
-
password
Returns the value of thepassword
record component.- Returns:
- the value of the
password
record component
-
roles
Returns the value of theroles
record component.- Returns:
- the value of the
roles
record component
-
deletedAt
Returns the value of thedeletedAt
record component.- Returns:
- the value of the
deletedAt
record component
-
ownerProjectCount
public int ownerProjectCount()Returns the value of theownerProjectCount
record component.- Returns:
- the value of the
ownerProjectCount
record component
-
participantProjectCount
public int participantProjectCount()Returns the value of theparticipantProjectCount
record component.- Returns:
- the value of the
participantProjectCount
record component
-
totalProjectCount
public int totalProjectCount()Returns the value of thetotalProjectCount
record component.- Returns:
- the value of the
totalProjectCount
record component
-