Package com.alpaca.dto.response
Record Class RoleResponseDTO
java.lang.Object
java.lang.Record
com.alpaca.dto.response.RoleResponseDTO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UUIDThe field for theidrecord component.private final List<PermissionResponseDTO> The field for thepermissionsrecord component.private final StringThe field for theroleDescriptionrecord component.private final StringThe field for theroleNamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRoleResponseDTO(UUID id, String roleName, String roleDescription, List<PermissionResponseDTO> permissions) Creates an instance of aRoleResponseDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.Returns the value of thepermissionsrecord component.Returns the value of theroleDescriptionrecord component.roleName()Returns the value of theroleNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
roleName
The field for theroleNamerecord component. -
roleDescription
The field for theroleDescriptionrecord component. -
permissions
The field for thepermissionsrecord component.
-
-
Constructor Details
-
RoleResponseDTO
public RoleResponseDTO(UUID id, String roleName, String roleDescription, List<PermissionResponseDTO> permissions) Creates an instance of aRoleResponseDTOrecord class.- Parameters:
id- the value for theidrecord componentroleName- the value for theroleNamerecord componentroleDescription- the value for theroleDescriptionrecord componentpermissions- the value for thepermissionsrecord 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
-
roleName
Returns the value of theroleNamerecord component.- Returns:
- the value of the
roleNamerecord component
-
roleDescription
Returns the value of theroleDescriptionrecord component.- Returns:
- the value of the
roleDescriptionrecord component
-
permissions
Returns the value of thepermissionsrecord component.- Returns:
- the value of the
permissionsrecord component
-