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 aTuteeSignupRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Integerage()Returns the value of theagerecord component.@NotNull @Email Stringemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull Booleangender()Returns the value of thegenderrecord component.final inthashCode()Returns a hash code value for this object.@NotNull KoreanLevelReturns the value of thekoreanLevelrecord component.Returns the value of thelanguageIdListrecord component.@NotEmpty Stringname()Returns the value of thenamerecord component.@NotEmpty Stringpassword()Returns the value of thepasswordrecord component.final StringtoString()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 aTuteeSignupRequestrecord class.- Parameters:
email- the value for theemailrecord componentpassword- the value for thepasswordrecord componentname- the value for thenamerecord componentage- the value for theagerecord componentgender- the value for thegenderrecord componentlanguageIdList- the value for thelanguageIdListrecord componentkoreanLevel- the value for thekoreanLevelrecord 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 theemailrecord component.- Returns:
- the value of the
emailrecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
age
Returns the value of theagerecord component.- Returns:
- the value of the
agerecord component
-
gender
Returns the value of thegenderrecord component.- Returns:
- the value of the
genderrecord component
-
languageIdList
Returns the value of thelanguageIdListrecord component.- Returns:
- the value of the
languageIdListrecord component
-
koreanLevel
Returns the value of thekoreanLevelrecord component.- Returns:
- the value of the
koreanLevelrecord component
-