Package com.alpaca.dto.response
Record Class UserResponseDTO
java.lang.Object
java.lang.Record
com.alpaca.dto.response.UserResponseDTO
public record UserResponseDTO(UUID id, String email, List<RoleResponseDTO> roles, ProfileResponseDTO profile, AdvertiserResponseDTO advertiser)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AdvertiserResponseDTOThe field for theadvertiserrecord component.private final StringThe field for theemailrecord component.private final UUIDThe field for theidrecord component.private final ProfileResponseDTOThe field for theprofilerecord component.private final List<RoleResponseDTO> The field for therolesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUserResponseDTO(UUID id, String email, List<RoleResponseDTO> roles, ProfileResponseDTO profile, AdvertiserResponseDTO advertiser) Creates an instance of aUserResponseDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadvertiserrecord 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.profile()Returns the value of theprofilerecord component.roles()Returns the value of therolesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
email
The field for theemailrecord component. -
roles
The field for therolesrecord component. -
profile
The field for theprofilerecord component. -
advertiser
The field for theadvertiserrecord component.
-
-
Constructor Details
-
UserResponseDTO
public UserResponseDTO(UUID id, String email, List<RoleResponseDTO> roles, ProfileResponseDTO profile, AdvertiserResponseDTO advertiser) Creates an instance of aUserResponseDTOrecord class.- Parameters:
id- the value for theidrecord componentemail- the value for theemailrecord componentroles- the value for therolesrecord componentprofile- the value for theprofilerecord componentadvertiser- the value for theadvertiserrecord 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
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-
profile
Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
advertiser
Returns the value of theadvertiserrecord component.- Returns:
- the value of the
advertiserrecord component
-