Record Class UserRankingScoreRequest
java.lang.Object
java.lang.Record
inha.git.admin.api.controller.dto.request.UserRankingScoreRequest
public record UserRankingScoreRequest(@NotNull(message="\uc720\uc800 \uc778\ub371\uc2a4\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") Integer userIdx, @Min(value=0L,message="\uc810\uc218\ub294 0 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @NotNull(message="\uc810\uc218\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") Integer adminScore)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionUserRankingScoreRequest(@NotNull(message="\uc720\uc800 \uc778\ub371\uc2a4\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") Integer userIdx, @Min(value=0L,message="\uc810\uc218\ub294 0 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @NotNull(message="\uc810\uc218\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") Integer adminScore) Creates an instance of aUserRankingScoreRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@Min(value=0L,message="\uc810\uc218\ub294 0 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @NotNull(message="\uc810\uc218\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") IntegerReturns the value of theadminScorerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.@NotNull(message="\uc720\uc800 \uc778\ub371\uc2a4\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") IntegeruserIdx()Returns the value of theuserIdxrecord component.
-
Constructor Details
-
UserRankingScoreRequest
public UserRankingScoreRequest(@NotNull(message="\uc720\uc800 \uc778\ub371\uc2a4\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") @NotNull(message="\uc720\uc800 \uc778\ub371\uc2a4\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") Integer userIdx, @Min(value=0L,message="\uc810\uc218\ub294 0 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @NotNull(message="\uc810\uc218\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") @Min(value=0L,message="\uc810\uc218\ub294 0 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @NotNull(message="\uc810\uc218\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") Integer adminScore) Creates an instance of aUserRankingScoreRequestrecord class.- Parameters:
userIdx- the value for theuserIdxrecord componentadminScore- the value for theadminScorerecord 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). -
userIdx
@NotNull(message="\uc720\uc800 \uc778\ub371\uc2a4\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") public @NotNull(message="\uc720\uc800 \uc778\ub371\uc2a4\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") Integer userIdx()Returns the value of theuserIdxrecord component.- Returns:
- the value of the
userIdxrecord component
-
adminScore
@Min(value=0L, message="\uc810\uc218\ub294 0 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @NotNull(message="\uc810\uc218\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") public @Min(value=0L,message="\uc810\uc218\ub294 0 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @NotNull(message="\uc810\uc218\ub294 \ud544\uc218\uc785\ub2c8\ub2e4.") Integer adminScore()Returns the value of theadminScorerecord component.- Returns:
- the value of the
adminScorerecord component
-