Record Class CreateProblemParticipantRequest

java.lang.Object
java.lang.Record
inha.git.problem.api.controller.dto.request.CreateProblemParticipantRequest

public record CreateProblemParticipantRequest(@NotNull String name, @NotNull Boolean isLeader, @NotNull String userNumber, @Email String email, @NotNull Grade grade, @NotNull Integer departmentId) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    CreateProblemParticipantRequest(@NotNull String name, @NotNull Boolean isLeader, @NotNull String userNumber, @Email String email, @NotNull Grade grade, @NotNull Integer departmentId)
    Creates an instance of a CreateProblemParticipantRequest record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Integer
    Returns the value of the departmentId record component.
    @Email String
    Returns the value of the email record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotNull Grade
    Returns the value of the grade record component.
    final int
    Returns a hash code value for this object.
    @NotNull Boolean
    Returns the value of the isLeader record component.
    @NotNull String
    Returns the value of the name record component.
    final String
    Returns a string representation of this record class.
    @NotNull String
    Returns the value of the userNumber record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a CreateProblemParticipantRequest record class.
      Parameters:
      name - the value for the name record component
      isLeader - the value for the isLeader record component
      userNumber - the value for the userNumber record component
      email - the value for the email record component
      grade - the value for the grade record component
      departmentId - the value for the departmentId record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      @NotNull public @NotNull String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • isLeader

      @NotNull public @NotNull Boolean isLeader()
      Returns the value of the isLeader record component.
      Returns:
      the value of the isLeader record component
    • userNumber

      @NotNull public @NotNull String userNumber()
      Returns the value of the userNumber record component.
      Returns:
      the value of the userNumber record component
    • email

      @Email public @Email String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • grade

      @NotNull public @NotNull Grade grade()
      Returns the value of the grade record component.
      Returns:
      the value of the grade record component
    • departmentId

      @NotNull public @NotNull Integer departmentId()
      Returns the value of the departmentId record component.
      Returns:
      the value of the departmentId record component