Record Class CreateReportRequest
java.lang.Object
java.lang.Record
inha.git.report.api.controller.dto.request.CreateReportRequest
-
Constructor Summary
ConstructorsConstructorDescriptionCreateReportRequest(@NotNull Integer reportTypeId, @NotNull Integer reportReasonId, @NotNull Integer reportedId, @NotNull String description) Creates an instance of aCreateReportRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns 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 IntegerReturns the value of thereportedIdrecord component.@NotNull IntegerReturns the value of thereportReasonIdrecord component.@NotNull IntegerReturns the value of thereportTypeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateReportRequest
public CreateReportRequest(@NotNull @NotNull Integer reportTypeId, @NotNull @NotNull Integer reportReasonId, @NotNull @NotNull Integer reportedId, @NotNull @NotNull String description) Creates an instance of aCreateReportRequestrecord class.- Parameters:
reportTypeId- the value for thereportTypeIdrecord componentreportReasonId- the value for thereportReasonIdrecord componentreportedId- the value for thereportedIdrecord componentdescription- the value for thedescriptionrecord 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). -
reportTypeId
Returns the value of thereportTypeIdrecord component.- Returns:
- the value of the
reportTypeIdrecord component
-
reportReasonId
Returns the value of thereportReasonIdrecord component.- Returns:
- the value of the
reportReasonIdrecord component
-
reportedId
Returns the value of thereportedIdrecord component.- Returns:
- the value of the
reportedIdrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-