Record Class TuteeSignupRequest
java.lang.Object
java.lang.Record
inha.dayoook_e.user.api.controller.dto.request.TuteeSignupRequest
-
Constructor Summary
ConstructorsConstructorDescriptionTuteeSignupRequest
(@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 aTuteeSignupRequest
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Integer
age()
Returns the value of theage
record component.@NotNull @Email String
email()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.@NotNull Boolean
gender()
Returns the value of thegender
record component.final int
hashCode()
Returns a hash code value for this object.@NotNull KoreanLevel
Returns the value of thekoreanLevel
record component.Returns the value of thelanguageIdList
record component.@NotEmpty String
name()
Returns the value of thename
record component.@NotEmpty String
password()
Returns the value of thepassword
record component.final String
toString()
Returns a string representation of this record class.
-
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 aTuteeSignupRequest
record class.- Parameters:
email
- the value for theemail
record componentpassword
- the value for thepassword
record componentname
- the value for thename
record componentage
- the value for theage
record componentgender
- the value for thegender
record componentlanguageIdList
- the value for thelanguageIdList
record componentkoreanLevel
- the value for thekoreanLevel
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)
. -
email
Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-
password
Returns the value of thepassword
record component.- Returns:
- the value of the
password
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
age
Returns the value of theage
record component.- Returns:
- the value of the
age
record component
-
gender
Returns the value of thegender
record component.- Returns:
- the value of the
gender
record component
-
languageIdList
Returns the value of thelanguageIdList
record component.- Returns:
- the value of the
languageIdList
record component
-
koreanLevel
Returns the value of thekoreanLevel
record component.- Returns:
- the value of the
koreanLevel
record component
-