Record Class Command.Poll
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Command.Poll
- All Implemented Interfaces:
CommandSetting, CooldownConfigSetting, EnableSetting, SoundConfigSetting
- Enclosing class:
Command
public static record Command.Poll(Boolean enable, Boolean enableGui, Integer lastId, Range range, String subCommandVote, String subCommandGui, List<String> aliases, Cooldown cooldown, Sound sound)
extends Record
implements CommandSetting, CooldownConfigSetting, SoundConfigSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns the value of thealiasesrecord component.static Command.Poll.PollBuilderbuilder()cooldown()Returns the value of thecooldownrecord component.enable()Returns the value of theenablerecord component.Returns the value of theenableGuirecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lastId()Returns the value of thelastIdrecord component.range()Returns the value of therangerecord component.sound()Returns the value of thesoundrecord component.Returns the value of thesubCommandGuirecord component.Returns the value of thesubCommandVoterecord component.final StringtoString()Returns a string representation of this record class.withAliases(List<String> aliases) withCooldown(Cooldown cooldown) withEnable(Boolean enable) withEnableGui(Boolean enableGui) withLastId(Integer lastId) withSubCommandGui(String subCommandGui) withSubCommandVote(String subCommandVote)
-
Constructor Details
-
Poll
public Poll(Boolean enable, Boolean enableGui, Integer lastId, Range range, String subCommandVote, String subCommandGui, List<String> aliases, Cooldown cooldown, Sound sound) Creates an instance of aPollrecord class.- Parameters:
enable- the value for theenablerecord componentenableGui- the value for theenableGuirecord componentlastId- the value for thelastIdrecord componentrange- the value for therangerecord componentsubCommandVote- the value for thesubCommandVoterecord componentsubCommandGui- the value for thesubCommandGuirecord componentaliases- the value for thealiasesrecord componentcooldown- the value for thecooldownrecord componentsound- the value for thesoundrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withEnable
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEnableGui
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLastId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRange
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSubCommandVote
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSubCommandGui
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAliases
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCooldown
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSound
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
toString
-
hashCode
-
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). -
enable
Returns the value of theenablerecord component.- Specified by:
enablein interfaceEnableSetting- Returns:
- the value of the
enablerecord component
-
enableGui
Returns the value of theenableGuirecord component.- Returns:
- the value of the
enableGuirecord component
-
lastId
Returns the value of thelastIdrecord component.- Returns:
- the value of the
lastIdrecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
subCommandVote
Returns the value of thesubCommandVoterecord component.- Returns:
- the value of the
subCommandVoterecord component
-
subCommandGui
Returns the value of thesubCommandGuirecord component.- Returns:
- the value of the
subCommandGuirecord component
-
aliases
Returns the value of thealiasesrecord component.- Specified by:
aliasesin interfaceCommandSetting- Returns:
- the value of the
aliasesrecord component
-
cooldown
Returns the value of thecooldownrecord component.- Specified by:
cooldownin interfaceCooldownConfigSetting- Returns:
- the value of the
cooldownrecord component - See Also:
-
sound
Returns the value of thesoundrecord component.- Specified by:
soundin interfaceSoundConfigSetting- Returns:
- the value of the
soundrecord component - See Also:
-