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 Summary
ConstructorsConstructorDescriptionSearchProfessorResponse
(@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) Creates an instance of aSearchProfessorResponse
record class.SearchProfessorResponse
(User user, Professor professor) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacceptedAt
record component.@NotNull LocalDateTime
Returns the value of thecreatedAt
record component.@NotNull List<SearchDepartmentResponse>
Returns the value of thedepartmentList
record component.@NotNull String
email()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull Integer
idx()
Returns the value of theidx
record component.@NotNull Boolean
Returns the value of theisBlocked
record component.@NotEmpty String
name()
Returns the value of thename
record component.@NotNull Integer
position()
Returns the value of theposition
record component.Returns the value of thereportCount
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SearchProfessorResponse
-
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 aSearchProfessorResponse
record class.- Parameters:
idx
- the value for theidx
record componentemail
- the value for theemail
record componentname
- the value for thename
record componentposition
- the value for theposition
record componentisBlocked
- the value for theisBlocked
record componentcreatedAt
- the value for thecreatedAt
record componentdepartmentList
- the value for thedepartmentList
record componentacceptedAt
- the value for theacceptedAt
record componentreportCount
- the value for thereportCount
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)
. -
idx
Returns the value of theidx
record component.- Returns:
- the value of the
idx
record component
-
email
Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
position
Returns the value of theposition
record component.- Returns:
- the value of the
position
record component
-
isBlocked
Returns the value of theisBlocked
record component.- Returns:
- the value of the
isBlocked
record component
-
createdAt
Returns the value of thecreatedAt
record component.- Returns:
- the value of the
createdAt
record component
-
departmentList
Returns the value of thedepartmentList
record component.- Returns:
- the value of the
departmentList
record component
-
acceptedAt
Returns the value of theacceptedAt
record component.- Returns:
- the value of the
acceptedAt
record component
-
reportCount
Returns the value of thereportCount
record component.- Returns:
- the value of the
reportCount
record component
-