Record Class UserRankingResponse
java.lang.Object
java.lang.Record
inha.git.user.api.controller.dto.response.UserRankingResponse
-
Constructor Summary
ConstructorsConstructorDescriptionUserRankingResponse(@NotNull Integer userId, @NotNull String name, String departmentName, Integer adminScore) Creates an instance of aUserRankingResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadminScorerecord component.Returns the value of thedepartmentNamerecord component.final booleanIndicates whether some other object is "equal to" this one.static UserRankingResponsefrom(UserRanking ranking) final inthashCode()Returns a hash code value for this object.@NotNull Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.@NotNull IntegeruserId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
UserRankingResponse
public UserRankingResponse(@NotNull @NotNull Integer userId, @NotNull @NotNull String name, String departmentName, Integer adminScore) Creates an instance of aUserRankingResponserecord class.- Parameters:
userId- the value for theuserIdrecord componentname- the value for thenamerecord componentdepartmentName- the value for thedepartmentNamerecord componentadminScore- the value for theadminScorerecord component
-
-
Method Details
-
from
-
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). -
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
departmentName
Returns the value of thedepartmentNamerecord component.- Returns:
- the value of the
departmentNamerecord component
-
adminScore
Returns the value of theadminScorerecord component.- Returns:
- the value of the
adminScorerecord component
-