Package api.mpba.rastvdmy.dto.response
Record Class UserProfileResponse
java.lang.Object
java.lang.Record
api.mpba.rastvdmy.dto.response.UserProfileResponse
- Record Components:
 id- The unique identifier of the user.name- The name of the user.surname- The surname of the user.dateOfBirth- The date of birth of the user.countryOfOrigin- The country of origin of the user.email- The email address of the user.password- The password of the user.phoneNumber- The phone number of the user.avatar- The avatar of the user.status- The status of the user.role- The role of the user in the system.
public record UserProfileResponse(UUID id, String name, String surname, String dateOfBirth, String countryOfOrigin, String email, String password, String phoneNumber, String avatar, UserStatus status, UserRole role)
extends Record
This class represents a response for a user profile in the banking system.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionavatar()Returns the value of theavatarrecord component.Returns the value of thecountryOfOriginrecord component.Returns the value of thedateOfBirthrecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.password()Returns the value of thepasswordrecord component.Returns the value of thephoneNumberrecord component.role()Returns the value of therolerecord component.status()Returns the value of thestatusrecord component.surname()Returns the value of thesurnamerecord component.final StringtoString()Returns a string representation of this record class. 
- 
Constructor Details
- 
UserProfileResponse
public UserProfileResponse(UUID id, String name, String surname, String dateOfBirth, String countryOfOrigin, String email, String password, String phoneNumber, String avatar, UserStatus status, UserRole role) Creates an instance of aUserProfileResponserecord class.- Parameters:
 id- the value for theidrecord componentname- the value for thenamerecord componentsurname- the value for thesurnamerecord componentdateOfBirth- the value for thedateOfBirthrecord componentcountryOfOrigin- the value for thecountryOfOriginrecord componentemail- the value for theemailrecord componentpassword- the value for thepasswordrecord componentphoneNumber- the value for thephoneNumberrecord componentavatar- the value for theavatarrecord componentstatus- the value for thestatusrecord componentrole- the value for therolerecord 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. All components in this record class are compared withObjects::equals(Object,Object). - 
id
Returns the value of theidrecord component.- Returns:
 - the value of the 
idrecord component 
 - 
name
Returns the value of thenamerecord component.- Returns:
 - the value of the 
namerecord component 
 - 
surname
Returns the value of thesurnamerecord component.- Returns:
 - the value of the 
surnamerecord component 
 - 
dateOfBirth
Returns the value of thedateOfBirthrecord component.- Returns:
 - the value of the 
dateOfBirthrecord component 
 - 
countryOfOrigin
Returns the value of thecountryOfOriginrecord component.- Returns:
 - the value of the 
countryOfOriginrecord component 
 - 
email
Returns the value of theemailrecord component.- Returns:
 - the value of the 
emailrecord component 
 - 
password
Returns the value of thepasswordrecord component.- Returns:
 - the value of the 
passwordrecord component 
 - 
phoneNumber
Returns the value of thephoneNumberrecord component.- Returns:
 - the value of the 
phoneNumberrecord component 
 - 
avatar
Returns the value of theavatarrecord component.- Returns:
 - the value of the 
avatarrecord component 
 - 
status
Returns the value of thestatusrecord component.- Returns:
 - the value of the 
statusrecord component 
 - 
role
Returns the value of therolerecord component.- Returns:
 - the value of the 
rolerecord component 
 
 -