Record Class TuteeSignupRequest

java.lang.Object
java.lang.Record
inha.dayoook_e.user.api.controller.dto.request.TuteeSignupRequest

public record TuteeSignupRequest(@NotNull @Email String email, @NotEmpty String password, @NotEmpty String name, @NotNull Integer age, @NotNull Boolean gender, List<Integer> languageIdList, @NotNull KoreanLevel koreanLevel) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    TuteeSignupRequest(@NotNull @Email String email, @NotEmpty String password, @NotEmpty String name, @NotNull Integer age, @NotNull Boolean gender, List<Integer> languageIdList, @NotNull KoreanLevel koreanLevel)
    Creates an instance of a TuteeSignupRequest record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Integer
    age()
    Returns the value of the age record component.
    @NotNull @Email String
    Returns the value of the email record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotNull Boolean
    Returns the value of the gender record component.
    final int
    Returns a hash code value for this object.
    @NotNull KoreanLevel
    Returns the value of the koreanLevel record component.
    Returns the value of the languageIdList record component.
    @NotEmpty String
    Returns the value of the name record component.
    @NotEmpty String
    Returns the value of the password record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TuteeSignupRequest

      public TuteeSignupRequest(@NotNull @Email @NotNull @Email String email, @NotEmpty @NotEmpty String password, @NotEmpty @NotEmpty String name, @NotNull @NotNull Integer age, @NotNull @NotNull Boolean gender, List<Integer> languageIdList, @NotNull @NotNull KoreanLevel koreanLevel)
      Creates an instance of a TuteeSignupRequest record class.
      Parameters:
      email - the value for the email record component
      password - the value for the password record component
      name - the value for the name record component
      age - the value for the age record component
      gender - the value for the gender record component
      languageIdList - the value for the languageIdList record component
      koreanLevel - the value for the koreanLevel 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.
    • email

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

      @NotEmpty public @NotEmpty String password()
      Returns the value of the password record component.
      Returns:
      the value of the password record component
    • name

      @NotEmpty public @NotEmpty String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • age

      @NotNull public @NotNull Integer age()
      Returns the value of the age record component.
      Returns:
      the value of the age record component
    • gender

      @NotNull public @NotNull Boolean gender()
      Returns the value of the gender record component.
      Returns:
      the value of the gender record component
    • languageIdList

      public List<Integer> languageIdList()
      Returns the value of the languageIdList record component.
      Returns:
      the value of the languageIdList record component
    • koreanLevel

      @NotNull public @NotNull KoreanLevel koreanLevel()
      Returns the value of the koreanLevel record component.
      Returns:
      the value of the koreanLevel record component