Record Class Localization.Command.Poll.Modern

java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Poll.Modern
Enclosing class:
Localization.Command.Poll

public static record Localization.Command.Poll.Modern(String header, String inputName, String inputInitial, String multipleName, String endTimeName, String repeatTimeName, String newAnswerButtonName, String removeAnswerButtonName, String inputAnswerName, String inputAnswersInitial, String createButtonName) extends Record
Since:
1.7.1
  • Constructor Details

    • Modern

      public Modern(String header, String inputName, String inputInitial, String multipleName, String endTimeName, String repeatTimeName, String newAnswerButtonName, String removeAnswerButtonName, String inputAnswerName, String inputAnswersInitial, String createButtonName)
      Creates an instance of a Modern record class.
      Parameters:
      header - the value for the header record component
      inputName - the value for the inputName record component
      inputInitial - the value for the inputInitial record component
      multipleName - the value for the multipleName record component
      endTimeName - the value for the endTimeName record component
      repeatTimeName - the value for the repeatTimeName record component
      newAnswerButtonName - the value for the newAnswerButtonName record component
      removeAnswerButtonName - the value for the removeAnswerButtonName record component
      inputAnswerName - the value for the inputAnswerName record component
      inputAnswersInitial - the value for the inputAnswersInitial record component
      createButtonName - the value for the createButtonName record component
  • Method Details

    • builder

    • toBuilder

    • withHeader

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

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

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

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

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

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

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

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

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

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

      public Localization.Command.Poll.Modern withCreateButtonName(String createButtonName)
      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.
    • header

      public String header()
      Returns the value of the header record component.
      Returns:
      the value of the header record component
    • inputName

      public String inputName()
      Returns the value of the inputName record component.
      Returns:
      the value of the inputName record component
    • inputInitial

      public String inputInitial()
      Returns the value of the inputInitial record component.
      Returns:
      the value of the inputInitial record component
    • multipleName

      public String multipleName()
      Returns the value of the multipleName record component.
      Returns:
      the value of the multipleName record component
    • endTimeName

      public String endTimeName()
      Returns the value of the endTimeName record component.
      Returns:
      the value of the endTimeName record component
    • repeatTimeName

      public String repeatTimeName()
      Returns the value of the repeatTimeName record component.
      Returns:
      the value of the repeatTimeName record component
    • newAnswerButtonName

      public String newAnswerButtonName()
      Returns the value of the newAnswerButtonName record component.
      Returns:
      the value of the newAnswerButtonName record component
    • removeAnswerButtonName

      public String removeAnswerButtonName()
      Returns the value of the removeAnswerButtonName record component.
      Returns:
      the value of the removeAnswerButtonName record component
    • inputAnswerName

      public String inputAnswerName()
      Returns the value of the inputAnswerName record component.
      Returns:
      the value of the inputAnswerName record component
    • inputAnswersInitial

      public String inputAnswersInitial()
      Returns the value of the inputAnswersInitial record component.
      Returns:
      the value of the inputAnswersInitial record component
    • createButtonName

      public String createButtonName()
      Returns the value of the createButtonName record component.
      Returns:
      the value of the createButtonName record component