Record Class SearchProblemSubmitResponse
java.lang.Object
java.lang.Record
inha.git.problem.api.controller.dto.response.SearchProblemSubmitResponse
public record SearchProblemSubmitResponse(int idx, int problemidx, int problemRequestidx, int projectidx)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSearchProblemSubmitResponse(int idx, int problemidx, int problemRequestidx, int projectidx) Creates an instance of aSearchProblemSubmitResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intidx()Returns the value of theidxrecord component.intReturns the value of theproblemidxrecord component.intReturns the value of theproblemRequestidxrecord component.intReturns the value of theprojectidxrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearchProblemSubmitResponse
public SearchProblemSubmitResponse(int idx, int problemidx, int problemRequestidx, int projectidx) Creates an instance of aSearchProblemSubmitResponserecord class.- Parameters:
idx- the value for theidxrecord componentproblemidx- the value for theproblemidxrecord componentproblemRequestidx- the value for theproblemRequestidxrecord componentprojectidx- the value for theprojectidxrecord 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 with '=='. -
idx
public int idx()Returns the value of theidxrecord component.- Returns:
- the value of the
idxrecord component
-
problemidx
public int problemidx()Returns the value of theproblemidxrecord component.- Returns:
- the value of the
problemidxrecord component
-
problemRequestidx
public int problemRequestidx()Returns the value of theproblemRequestidxrecord component.- Returns:
- the value of the
problemRequestidxrecord component
-
projectidx
public int projectidx()Returns the value of theprojectidxrecord component.- Returns:
- the value of the
projectidxrecord component
-