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
  • 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 a Poll record class.
      Parameters:
      nullPoll - the value for the nullPoll record component
      expired - the value for the expired record component
      already - the value for the already record component
      voteTrue - the value for the voteTrue record component
      voteFalse - the value for the voteFalse record component
      format - the value for the format record component
      answerTemplate - the value for the answerTemplate record component
      status - the value for the status record component
      modern - the value for the modern record component
  • Method Details

    • builder

      public static Localization.Command.Poll.PollBuilder builder()
    • toBuilder

    • withNullPoll

      public Localization.Command.Poll withNullPoll(String nullPoll)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withExpired

      public Localization.Command.Poll withExpired(String expired)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAlready

      public Localization.Command.Poll withAlready(String already)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withVoteTrue

      public Localization.Command.Poll withVoteTrue(String voteTrue)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withVoteFalse

      public Localization.Command.Poll withVoteFalse(String voteFalse)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormat

      public Localization.Command.Poll withFormat(String format)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAnswerTemplate

      public Localization.Command.Poll withAnswerTemplate(String answerTemplate)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withStatus

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withModern

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • nullPoll

      public String nullPoll()
      Returns the value of the nullPoll record component.
      Returns:
      the value of the nullPoll record component
    • expired

      public String expired()
      Returns the value of the expired record component.
      Returns:
      the value of the expired record component
    • already

      public String already()
      Returns the value of the already record component.
      Returns:
      the value of the already record component
    • voteTrue

      public String voteTrue()
      Returns the value of the voteTrue record component.
      Returns:
      the value of the voteTrue record component
    • voteFalse

      public String voteFalse()
      Returns the value of the voteFalse record component.
      Returns:
      the value of the voteFalse record component
    • format

      public String format()
      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • answerTemplate

      public String answerTemplate()
      Returns the value of the answerTemplate record component.
      Returns:
      the value of the answerTemplate record component
    • status

      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • modern

      Returns the value of the modern record component.
      Returns:
      the value of the modern record component