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

    Constructors
    Constructor
    Description
    TutorInfoResponse(@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 a TutorInfoResponse record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Integer
    age()
    Returns the value of the age record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotNull Boolean
    Returns the value of the gender record component.
    final int
    Returns a hash code value for this object.
    @NotNull Integer
    id()
    Returns the value of the id record component.
    @NotNull KoreanLevel
    Returns the value of the koreanLevel record component.
    @NotNull String
    Returns the value of the name record component.
    @NotNull String
    Returns the value of the profileUrl record component.
    @NotNull Role
    Returns the value of the role record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a TutorInfoResponse record class.
      Parameters:
      id - the value for the id record component
      role - the value for the role record component
      name - the value for the name record component
      profileUrl - the value for the profileUrl record component
      gender - the value for the gender record component
      age - the value for the age record component
      koreanLevel - the value for the koreanLevel record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      @NotNull public @NotNull Integer id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • role

      @NotNull public @NotNull Role role()
      Returns the value of the role record component.
      Returns:
      the value of the role record component
    • name

      @NotNull public @NotNull String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • profileUrl

      @NotNull public @NotNull String profileUrl()
      Returns the value of the profileUrl record component.
      Returns:
      the value of the profileUrl record component
    • gender

      @NotNull public @NotNull Boolean gender()
      Returns the value of the gender record component.
      Returns:
      the value of the gender record component
    • age

      @NotNull public @NotNull Integer age()
      Returns the value of the age record component.
      Returns:
      the value of the age record component
    • koreanLevel

      @NotNull public @NotNull KoreanLevel koreanLevel()
      Returns the value of the koreanLevel record component.
      Returns:
      the value of the koreanLevel record component