Record Class CreateProblemParticipantRequest
java.lang.Object
java.lang.Record
inha.git.problem.api.controller.dto.request.CreateProblemParticipantRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull IntegerReturns the value of thedepartmentIdrecord component.@Email Stringemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull Gradegrade()Returns the value of thegraderecord component.final inthashCode()Returns a hash code value for this object.@NotNull BooleanisLeader()Returns the value of theisLeaderrecord component.@NotNull Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.@NotNull StringReturns the value of theuserNumberrecord component.
-
Constructor Details
-
CreateProblemParticipantRequest
public CreateProblemParticipantRequest(@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 aCreateProblemParticipantRequestrecord class.- Parameters:
name- the value for thenamerecord componentisLeader- the value for theisLeaderrecord componentuserNumber- the value for theuserNumberrecord componentemail- the value for theemailrecord componentgrade- the value for thegraderecord componentdepartmentId- the value for thedepartmentIdrecord 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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
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
-
departmentId
Returns the value of thedepartmentIdrecord component.- Returns:
- the value of the
departmentIdrecord component
-