Record Class ProblemParticipantResponse
java.lang.Object
java.lang.Record
inha.git.problem.api.controller.dto.response.ProblemParticipantResponse
-
Constructor Summary
ConstructorsConstructorDescriptionProblemParticipantResponse
(int idx, String name, boolean isLeader, String userNumber, String email, Grade grade, SearchDepartmentResponse department) Creates an instance of aProblemParticipantResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedepartment
record component.email()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.grade()
Returns the value of thegrade
record component.final int
hashCode()
Returns a hash code value for this object.int
idx()
Returns the value of theidx
record component.boolean
isLeader()
Returns the value of theisLeader
record component.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuserNumber
record component.
-
Constructor Details
-
ProblemParticipantResponse
public ProblemParticipantResponse(int idx, String name, boolean isLeader, String userNumber, String email, Grade grade, SearchDepartmentResponse department) Creates an instance of aProblemParticipantResponse
record class.- Parameters:
idx
- the value for theidx
record componentname
- the value for thename
record componentisLeader
- the value for theisLeader
record componentuserNumber
- the value for theuserNumber
record componentemail
- the value for theemail
record componentgrade
- the value for thegrade
record componentdepartment
- the value for thedepartment
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
idx
public int idx()Returns the value of theidx
record component.- Returns:
- the value of the
idx
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
isLeader
public boolean isLeader()Returns the value of theisLeader
record component.- Returns:
- the value of the
isLeader
record component
-
userNumber
Returns the value of theuserNumber
record component.- Returns:
- the value of the
userNumber
record component
-
email
Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-
grade
Returns the value of thegrade
record component.- Returns:
- the value of the
grade
record component
-
department
Returns the value of thedepartment
record component.- Returns:
- the value of the
department
record component
-