Package com.easydesk.web.controller
Record Class ModuleAdminController.ModuleItemTypeExtra
java.lang.Object
java.lang.Record
com.easydesk.web.controller.ModuleAdminController.ModuleItemTypeExtra
- Enclosing class:
ModuleAdminController
public static record ModuleAdminController.ModuleItemTypeExtra(int comments, boolean moderation, int maxVotes)
extends Record
RequestItemType 에 포함되지 않은 ModuleItemType column (COMMENTS / MODERATION / MAX_VOTES).
-
Constructor Summary
ConstructorsConstructorDescriptionModuleItemTypeExtra(int comments, boolean moderation, int maxVotes) Creates an instance of aModuleItemTypeExtrarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcomments()Returns the value of thecommentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxVotes()Returns the value of themaxVotesrecord component.booleanReturns the value of themoderationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModuleItemTypeExtra
public ModuleItemTypeExtra(int comments, boolean moderation, int maxVotes) Creates an instance of aModuleItemTypeExtrarecord class.- Parameters:
comments- the value for thecommentsrecord componentmoderation- the value for themoderationrecord componentmaxVotes- the value for themaxVotesrecord 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 with '=='. -
comments
public int comments()Returns the value of thecommentsrecord component.- Returns:
- the value of the
commentsrecord component
-
moderation
public boolean moderation()Returns the value of themoderationrecord component.- Returns:
- the value of the
moderationrecord component
-
maxVotes
public int maxVotes()Returns the value of themaxVotesrecord component.- Returns:
- the value of the
maxVotesrecord component
-