Record Class UpdateUserDto
java.lang.Object
java.lang.Record
com.app.controller.dto.user.UpdateUserDto
- Record Components:
userId
- the unique identifier of the user to updateholidayHours
- the updated number of holiday hours assigned to the userrole
- the updated role of the user
Data Transfer Object (DTO) for updating user details.
Contains the user ID, number of holiday hours, and the user's role.
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateUserDto
(Long userId, Long holidayHours, Role role) Creates an instance of aUpdateUserDto
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.Returns the value of theholidayHours
record component.role()
Returns the value of therole
record component.final String
toString()
Returns a string representation of this record class.userId()
Returns the value of theuserId
record component.
-
Constructor Details
-
UpdateUserDto
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
userId
-
holidayHours
Returns the value of theholidayHours
record component.- Returns:
- the value of the
holidayHours
record component
-
role
-