Record Class ForgotPasswordForm

java.lang.Object
java.lang.Record
com.easydesk.web.form.ForgotPasswordForm
Record Components:
email - 비밀번호를 재설정할 계정의 이메일 주소

public record ForgotPasswordForm(String email) extends Record
'비밀번호 찾기' 화면(이메일 입력)에서 쓰는 폼 바인딩용 레코드. ChangePassword(com.easydesk.modules.records)와 달리 이건 라이브러리(easydesk-spring-modules)가 아니라 데모 앱에만 있는 개념(토큰 발급/메일 발송)이라 데모 쪽 패키지에 둔다.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of a ForgotPasswordForm record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the email record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    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

    • ForgotPasswordForm

      public ForgotPasswordForm(String email)
      Creates an instance of a ForgotPasswordForm record class.
      Parameters:
      email - the value for the email 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

      public String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component