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 aTutorInfoResponse
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Integer
age()
Returns the value of theage
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 Integer
id()
Returns the value of theid
record component.@NotNull KoreanLevel
Returns the value of thekoreanLevel
record component.@NotNull String
name()
Returns the value of thename
record component.@NotNull String
Returns the value of theprofileUrl
record component.@NotNull Role
role()
Returns the value of therole
record component.final String
toString()
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 aTutorInfoResponse
record class.- Parameters:
id
- the value for theid
record componentrole
- the value for therole
record componentname
- the value for thename
record componentprofileUrl
- the value for theprofileUrl
record componentgender
- the value for thegender
record componentage
- the value for theage
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)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
role
Returns the value of therole
record component.- Returns:
- the value of the
role
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
profileUrl
Returns the value of theprofileUrl
record component.- Returns:
- the value of the
profileUrl
record component
-
gender
Returns the value of thegender
record component.- Returns:
- the value of the
gender
record component
-
age
Returns the value of theage
record component.- Returns:
- the value of the
age
record component
-
koreanLevel
Returns the value of thekoreanLevel
record component.- Returns:
- the value of the
koreanLevel
record component
-