Record Class UpdateProblemParticipantRequest
java.lang.Object
java.lang.Record
inha.git.problem.api.controller.dto.request.UpdateProblemParticipantRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Integer
Returns the value of thedepartmentId
record component.@Email String
email()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.@NotNull Grade
grade()
Returns the value of thegrade
record component.final int
hashCode()
Returns a hash code value for this object.@NotNull Boolean
isLeader()
Returns the value of theisLeader
record component.@NotNull String
name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.@NotNull String
Returns the value of theuserNumber
record component.
-
Constructor Details
-
UpdateProblemParticipantRequest
public UpdateProblemParticipantRequest(@NotNull @NotNull String name, @NotNull @NotNull Boolean isLeader, @NotNull @NotNull String userNumber, @Email @Email String email, @NotNull @NotNull Grade grade, @NotNull @NotNull Integer departmentId) Creates an instance of aUpdateProblemParticipantRequest
record class.- Parameters:
name
- 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 componentdepartmentId
- the value for thedepartmentId
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
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
-
departmentId
Returns the value of thedepartmentId
record component.- Returns:
- the value of the
departmentId
record component
-