Package org.localify.user.dto
Record Class UserFeedbackResponse
java.lang.Object
java.lang.Record
org.localify.user.dto.UserFeedbackResponse
- Record Components:
id- The feedback ID.userName- The name of the user who submitted the feedback.userId- The ID of the user who submitted the feedback.createdAt- The time the feedback was submitted.entry- The feedback entry.email- The email of the user who submitted the feedback.
public record UserFeedbackResponse(UUID id, String userName, UUID userId, Instant createdAt, String entry, String email)
extends Record
A response containing user feedback.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.email()Returns the value of theemailrecord component.entry()Returns the value of theentryrecord 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.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.userName()Returns the value of theuserNamerecord component.
-
Constructor Details
-
UserFeedbackResponse
public UserFeedbackResponse(UUID id, String userName, UUID userId, Instant createdAt, String entry, String email) Creates an instance of aUserFeedbackResponserecord class.- Parameters:
id- the value for theidrecord componentuserName- the value for theuserNamerecord componentuserId- the value for theuserIdrecord componentcreatedAt- the value for thecreatedAtrecord componententry- the value for theentryrecord componentemail- the value for theemailrecord 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
-
userName
Returns the value of theuserNamerecord component.- Returns:
- the value of the
userNamerecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
entry
Returns the value of theentryrecord component.- Returns:
- the value of the
entryrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-