Record Class SearchReportResponse
java.lang.Object
java.lang.Record
inha.git.report.api.controller.dto.response.SearchReportResponse
public record SearchReportResponse(@NotNull Integer idx, ReportTypeResponse reportType, ReportReasonResponse reportReason, SearchUserResponse reporter, SearchUserResponse reported, String description, @NotNull BaseEntity.State state, @NotNull LocalDateTime createdAt, LocalDateTime deletedAt)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSearchReportResponse
(@NotNull Integer idx, ReportTypeResponse reportType, ReportReasonResponse reportReason, SearchUserResponse reporter, SearchUserResponse reported, String description, @NotNull BaseEntity.State state, @NotNull LocalDateTime createdAt, LocalDateTime deletedAt) Creates an instance of aSearchReportResponse
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull LocalDateTime
Returns the value of thecreatedAt
record component.Returns the value of thedeletedAt
record component.Returns the value of thedescription
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.@NotNull Integer
idx()
Returns the value of theidx
record component.reported()
Returns the value of thereported
record component.reporter()
Returns the value of thereporter
record component.Returns the value of thereportReason
record component.Returns the value of thereportType
record component.@NotNull BaseEntity.State
state()
Returns the value of thestate
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SearchReportResponse
public SearchReportResponse(@NotNull @NotNull Integer idx, ReportTypeResponse reportType, ReportReasonResponse reportReason, SearchUserResponse reporter, SearchUserResponse reported, String description, @NotNull @NotNull BaseEntity.State state, @NotNull @NotNull LocalDateTime createdAt, LocalDateTime deletedAt) Creates an instance of aSearchReportResponse
record class.- Parameters:
idx
- the value for theidx
record componentreportType
- the value for thereportType
record componentreportReason
- the value for thereportReason
record componentreporter
- the value for thereporter
record componentreported
- the value for thereported
record componentdescription
- the value for thedescription
record componentstate
- the value for thestate
record componentcreatedAt
- the value for thecreatedAt
record componentdeletedAt
- the value for thedeletedAt
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)
. -
idx
Returns the value of theidx
record component.- Returns:
- the value of the
idx
record component
-
reportType
Returns the value of thereportType
record component.- Returns:
- the value of the
reportType
record component
-
reportReason
Returns the value of thereportReason
record component.- Returns:
- the value of the
reportReason
record component
-
reporter
Returns the value of thereporter
record component.- Returns:
- the value of the
reporter
record component
-
reported
Returns the value of thereported
record component.- Returns:
- the value of the
reported
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-
createdAt
Returns the value of thecreatedAt
record component.- Returns:
- the value of the
createdAt
record component
-
deletedAt
Returns the value of thedeletedAt
record component.- Returns:
- the value of the
deletedAt
record component
-