Record Class SearchProfessorResponse

java.lang.Object
java.lang.Record
inha.git.admin.api.controller.dto.response.SearchProfessorResponse

public record SearchProfessorResponse(@NotNull Integer idx, @NotNull String email, @NotEmpty String name, @NotNull Integer position, @NotNull Boolean isBlocked, @NotNull LocalDateTime createdAt, @NotNull List<SearchDepartmentResponse> departmentList, LocalDateTime acceptedAt, Integer reportCount) extends Record
  • Constructor Details

    • SearchProfessorResponse

      @QueryProjection public SearchProfessorResponse(User user, Professor professor)
    • SearchProfessorResponse

      public SearchProfessorResponse(@NotNull @NotNull Integer idx, @NotNull @NotNull String email, @NotEmpty @NotEmpty String name, @NotNull @NotNull Integer position, @NotNull @NotNull Boolean isBlocked, @NotNull @NotNull LocalDateTime createdAt, @NotNull @NotNull List<SearchDepartmentResponse> departmentList, LocalDateTime acceptedAt, Integer reportCount)
      Creates an instance of a SearchProfessorResponse record class.
      Parameters:
      idx - the value for the idx record component
      email - the value for the email record component
      name - the value for the name record component
      position - the value for the position record component
      isBlocked - the value for the isBlocked record component
      createdAt - the value for the createdAt record component
      departmentList - the value for the departmentList record component
      acceptedAt - the value for the acceptedAt record component
      reportCount - the value for the reportCount 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.
    • idx

      @NotNull public @NotNull Integer idx()
      Returns the value of the idx record component.
      Returns:
      the value of the idx record component
    • email

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

      @NotEmpty public @NotEmpty String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • position

      @NotNull public @NotNull Integer position()
      Returns the value of the position record component.
      Returns:
      the value of the position record component
    • isBlocked

      @NotNull public @NotNull Boolean isBlocked()
      Returns the value of the isBlocked record component.
      Returns:
      the value of the isBlocked record component
    • createdAt

      @NotNull public @NotNull LocalDateTime createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • departmentList

      @NotNull public @NotNull List<SearchDepartmentResponse> departmentList()
      Returns the value of the departmentList record component.
      Returns:
      the value of the departmentList record component
    • acceptedAt

      public LocalDateTime acceptedAt()
      Returns the value of the acceptedAt record component.
      Returns:
      the value of the acceptedAt record component
    • reportCount

      public Integer reportCount()
      Returns the value of the reportCount record component.
      Returns:
      the value of the reportCount record component