Record Class TutorInfoResponse
java.lang.Object
java.lang.Record
inha.dayoook_e.user.api.controller.dto.response.TutorInfoResponse
- All Implemented Interfaces:
UserInfoResponse
public record TutorInfoResponse(@NotNull Integer id, @NotNull Role role, @NotNull String name, @NotNull String profileUrl, @NotNull Boolean gender, @NotNull Integer age, @NotNull KoreanLevel koreanLevel)
extends Record
implements UserInfoResponse
-
Constructor Summary
ConstructorsConstructorDescriptionTutorInfoResponse(@NotNull Integer id, @NotNull Role role, @NotNull String name, @NotNull String profileUrl, @NotNull Boolean gender, @NotNull Integer age, @NotNull KoreanLevel koreanLevel) Creates an instance of aTutorInfoResponserecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Integerage()Returns the value of theagerecord 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 Integerid()Returns the value of theidrecord component.@NotNull KoreanLevelReturns the value of thekoreanLevelrecord component.@NotNull Stringname()Returns the value of thenamerecord component.@NotNull StringReturns the value of theprofileUrlrecord component.@NotNull Rolerole()Returns the value of therolerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TutorInfoResponse
public TutorInfoResponse(@NotNull @NotNull Integer id, @NotNull @NotNull Role role, @NotNull @NotNull String name, @NotNull @NotNull String profileUrl, @NotNull @NotNull Boolean gender, @NotNull @NotNull Integer age, @NotNull @NotNull KoreanLevel koreanLevel) Creates an instance of aTutorInfoResponserecord class.- Parameters:
id- the value for theidrecord componentrole- the value for therolerecord componentname- the value for thenamerecord componentprofileUrl- the value for theprofileUrlrecord componentgender- the value for thegenderrecord componentage- the value for theagerecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
profileUrl
Returns the value of theprofileUrlrecord component.- Returns:
- the value of the
profileUrlrecord component
-
gender
Returns the value of thegenderrecord component.- Returns:
- the value of the
genderrecord component
-
age
Returns the value of theagerecord component.- Returns:
- the value of the
agerecord component
-
koreanLevel
Returns the value of thekoreanLevelrecord component.- Returns:
- the value of the
koreanLevelrecord component
-