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 aSearchReportResponserecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull LocalDateTimeReturns the value of thecreatedAtrecord component.Returns the value of thedeletedAtrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Integeridx()Returns the value of theidxrecord component.reported()Returns the value of thereportedrecord component.reporter()Returns the value of thereporterrecord component.Returns the value of thereportReasonrecord component.Returns the value of thereportTyperecord component.@NotNull BaseEntity.Statestate()Returns the value of thestaterecord component.final StringtoString()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 aSearchReportResponserecord class.- Parameters:
idx- the value for theidxrecord componentreportType- the value for thereportTyperecord componentreportReason- the value for thereportReasonrecord componentreporter- the value for thereporterrecord componentreported- the value for thereportedrecord componentdescription- the value for thedescriptionrecord componentstate- the value for thestaterecord componentcreatedAt- the value for thecreatedAtrecord componentdeletedAt- the value for thedeletedAtrecord 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 theidxrecord component.- Returns:
- the value of the
idxrecord component
-
reportType
Returns the value of thereportTyperecord component.- Returns:
- the value of the
reportTyperecord component
-
reportReason
Returns the value of thereportReasonrecord component.- Returns:
- the value of the
reportReasonrecord component
-
reporter
Returns the value of thereporterrecord component.- Returns:
- the value of the
reporterrecord component
-
reported
Returns the value of thereportedrecord component.- Returns:
- the value of the
reportedrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
deletedAt
Returns the value of thedeletedAtrecord component.- Returns:
- the value of the
deletedAtrecord component
-