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 aCreateReportRequest
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull String
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
Returns the value of thereportedId
record component.@NotNull Integer
Returns the value of thereportReasonId
record component.@NotNull Integer
Returns the value of thereportTypeId
record component.final String
toString()
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 aCreateReportRequest
record class.- Parameters:
reportTypeId
- the value for thereportTypeId
record componentreportReasonId
- the value for thereportReasonId
record componentreportedId
- the value for thereportedId
record componentdescription
- the value for thedescription
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)
. -
reportTypeId
Returns the value of thereportTypeId
record component.- Returns:
- the value of the
reportTypeId
record component
-
reportReasonId
Returns the value of thereportReasonId
record component.- Returns:
- the value of the
reportReasonId
record component
-
reportedId
Returns the value of thereportedId
record component.- Returns:
- the value of the
reportedId
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-