Record Class TutorSignupRequest
java.lang.Object
java.lang.Record
inha.dayoook_e.user.api.controller.dto.request.TutorSignupRequest
public record TutorSignupRequest(@NotNull @Email String email, @NotEmpty String password, @NotEmpty String name, @NotNull Integer age, @NotNull Boolean gender, List<Integer> languageIdList, @NotNull String introduction, @NotNull String occupation, List<String> descriptionList, @NotNull KoreanLevel koreanLevel)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTutorSignupRequest(@NotNull @Email String email, @NotEmpty String password, @NotEmpty String name, @NotNull Integer age, @NotNull Boolean gender, List<Integer> languageIdList, @NotNull String introduction, @NotNull String occupation, List<String> descriptionList, @NotNull KoreanLevel koreanLevel) Creates an instance of aTutorSignupRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Integerage()Returns the value of theagerecord component.Returns the value of thedescriptionListrecord 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 StringReturns the value of theintroductionrecord component.@NotNull KoreanLevelReturns the value of thekoreanLevelrecord component.Returns the value of thelanguageIdListrecord component.@NotEmpty Stringname()Returns the value of thenamerecord component.@NotNull StringReturns the value of theoccupationrecord component.@NotEmpty Stringpassword()Returns the value of thepasswordrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TutorSignupRequest
public TutorSignupRequest(@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 String introduction, @NotNull @NotNull String occupation, List<String> descriptionList, @NotNull @NotNull KoreanLevel koreanLevel) Creates an instance of aTutorSignupRequestrecord 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 componentintroduction- the value for theintroductionrecord componentoccupation- the value for theoccupationrecord componentdescriptionList- the value for thedescriptionListrecord 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
-
introduction
Returns the value of theintroductionrecord component.- Returns:
- the value of the
introductionrecord component
-
occupation
Returns the value of theoccupationrecord component.- Returns:
- the value of the
occupationrecord component
-
descriptionList
Returns the value of thedescriptionListrecord component.- Returns:
- the value of the
descriptionListrecord component
-
koreanLevel
Returns the value of thekoreanLevelrecord component.- Returns:
- the value of the
koreanLevelrecord component
-