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 AdvertiserResponseDTO
The field for theadvertiser
record component.private final String
The field for theemail
record component.private final UUID
The field for theid
record component.private final ProfileResponseDTO
The field for theprofile
record component.private final List
<RoleResponseDTO> The field for theroles
record component. -
Constructor Summary
ConstructorsConstructorDescriptionUserResponseDTO
(UUID id, String email, List<RoleResponseDTO> roles, ProfileResponseDTO profile, AdvertiserResponseDTO advertiser) Creates an instance of aUserResponseDTO
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadvertiser
record component.email()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.profile()
Returns the value of theprofile
record component.roles()
Returns the value of theroles
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
id
The field for theid
record component. -
email
The field for theemail
record component. -
roles
The field for theroles
record component. -
profile
The field for theprofile
record component. -
advertiser
The field for theadvertiser
record component.
-
-
Constructor Details
-
UserResponseDTO
public UserResponseDTO(UUID id, String email, List<RoleResponseDTO> roles, ProfileResponseDTO profile, AdvertiserResponseDTO advertiser) Creates an instance of aUserResponseDTO
record class.- Parameters:
id
- the value for theid
record componentemail
- the value for theemail
record componentroles
- the value for theroles
record componentprofile
- the value for theprofile
record componentadvertiser
- the value for theadvertiser
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
email
Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-
roles
Returns the value of theroles
record component.- Returns:
- the value of the
roles
record component
-
profile
Returns the value of theprofile
record component.- Returns:
- the value of the
profile
record component
-
advertiser
Returns the value of theadvertiser
record component.- Returns:
- the value of the
advertiser
record component
-