Record Class SearchCompanyResponse
java.lang.Object
java.lang.Record
inha.git.admin.api.controller.dto.response.SearchCompanyResponse
public record SearchCompanyResponse(@NotNull Integer idx, @NotNull String email, @NotEmpty String name, @NotNull Integer position, @NotNull Boolean isBlocked, @NotNull LocalDateTime createdAt, @NotNull String affiliation, @NotNull String evidence, LocalDateTime acceptedAt, Integer reportCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSearchCompanyResponse
(@NotNull Integer idx, @NotNull String email, @NotEmpty String name, @NotNull Integer position, @NotNull Boolean isBlocked, @NotNull LocalDateTime createdAt, @NotNull String affiliation, @NotNull String evidence, LocalDateTime acceptedAt, Integer reportCount) Creates an instance of aSearchCompanyResponse
record class.SearchCompanyResponse
(User user, Company company) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacceptedAt
record component.@NotNull String
Returns the value of theaffiliation
record component.@NotNull LocalDateTime
Returns the value of thecreatedAt
record component.@NotNull String
email()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.@NotNull String
evidence()
Returns the value of theevidence
record component.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
-
SearchCompanyResponse
-
SearchCompanyResponse
public SearchCompanyResponse(@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 String affiliation, @NotNull @NotNull String evidence, LocalDateTime acceptedAt, Integer reportCount) Creates an instance of aSearchCompanyResponse
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 componentaffiliation
- the value for theaffiliation
record componentevidence
- the value for theevidence
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
-
affiliation
Returns the value of theaffiliation
record component.- Returns:
- the value of the
affiliation
record component
-
evidence
Returns the value of theevidence
record component.- Returns:
- the value of the
evidence
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
-