Record Class Localization.Command.Poll
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Poll
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Command
public static record Localization.Command.Poll(String nullPoll, String expired, String already, String voteTrue, String voteFalse, String format, String answerTemplate, Localization.Command.Poll.Status status, Localization.Command.Poll.Modern modern)
extends Record
implements LocalizationSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic classstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionPoll(String nullPoll, String expired, String already, String voteTrue, String voteFalse, String format, String answerTemplate, Localization.Command.Poll.Status status, Localization.Command.Poll.Modern modern) Creates an instance of aPollrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalready()Returns the value of thealreadyrecord component.Returns the value of theanswerTemplaterecord component.builder()final booleanIndicates whether some other object is "equal to" this one.expired()Returns the value of theexpiredrecord component.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.modern()Returns the value of themodernrecord component.nullPoll()Returns the value of thenullPollrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevoteFalserecord component.voteTrue()Returns the value of thevoteTruerecord component.withAlready(String already) withAnswerTemplate(String answerTemplate) withExpired(String expired) withFormat(String format) withNullPoll(String nullPoll) withVoteFalse(String voteFalse) withVoteTrue(String voteTrue)
-
Constructor Details
-
Poll
public Poll(String nullPoll, String expired, String already, String voteTrue, String voteFalse, String format, String answerTemplate, Localization.Command.Poll.Status status, Localization.Command.Poll.Modern modern) Creates an instance of aPollrecord class.- Parameters:
nullPoll- the value for thenullPollrecord componentexpired- the value for theexpiredrecord componentalready- the value for thealreadyrecord componentvoteTrue- the value for thevoteTruerecord componentvoteFalse- the value for thevoteFalserecord componentformat- the value for theformatrecord componentanswerTemplate- the value for theanswerTemplaterecord componentstatus- the value for thestatusrecord componentmodern- the value for themodernrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withNullPoll
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withExpired
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAlready
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withVoteTrue
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withVoteFalse
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFormat
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAnswerTemplate
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withStatus
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withModern
- 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). -
nullPoll
Returns the value of thenullPollrecord component.- Returns:
- the value of the
nullPollrecord component
-
expired
Returns the value of theexpiredrecord component.- Returns:
- the value of the
expiredrecord component
-
already
Returns the value of thealreadyrecord component.- Returns:
- the value of the
alreadyrecord component
-
voteTrue
Returns the value of thevoteTruerecord component.- Returns:
- the value of the
voteTruerecord component
-
voteFalse
Returns the value of thevoteFalserecord component.- Returns:
- the value of the
voteFalserecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
answerTemplate
Returns the value of theanswerTemplaterecord component.- Returns:
- the value of the
answerTemplaterecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
modern
Returns the value of themodernrecord component.- Returns:
- the value of the
modernrecord component
-