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 aProblemParticipantResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedepartmentrecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.grade()Returns the value of thegraderecord component.final inthashCode()Returns a hash code value for this object.intidx()Returns the value of theidxrecord component.booleanisLeader()Returns the value of theisLeaderrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserNumberrecord component.
-
Constructor Details
-
ProblemParticipantResponse
public ProblemParticipantResponse(int idx, String name, boolean isLeader, String userNumber, String email, Grade grade, SearchDepartmentResponse department) Creates an instance of aProblemParticipantResponserecord class.- Parameters:
idx- the value for theidxrecord componentname- the value for thenamerecord componentisLeader- the value for theisLeaderrecord componentuserNumber- the value for theuserNumberrecord componentemail- the value for theemailrecord componentgrade- the value for thegraderecord componentdepartment- the value for thedepartmentrecord 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 theidxrecord component.- Returns:
- the value of the
idxrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
isLeader
public boolean isLeader()Returns the value of theisLeaderrecord component.- Returns:
- the value of the
isLeaderrecord component
-
userNumber
Returns the value of theuserNumberrecord component.- Returns:
- the value of the
userNumberrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
grade
Returns the value of thegraderecord component.- Returns:
- the value of the
graderecord component
-
department
Returns the value of thedepartmentrecord component.- Returns:
- the value of the
departmentrecord component
-