Record Class Localization.Command.Prompt

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

public static record Localization.Command.Prompt(String message, String hard, String accept, String turn, String type, String reason, String category, String id, String time, String repeatTime, String multipleVote, String player, String number, String color, String language, String url, String move, String value) extends Record
Since:
1.7.1
  • Constructor Details

    • Prompt

      public Prompt(String message, String hard, String accept, String turn, String type, String reason, String category, String id, String time, String repeatTime, String multipleVote, String player, String number, String color, String language, String url, String move, String value)
      Creates an instance of a Prompt record class.
      Parameters:
      message - the value for the message record component
      hard - the value for the hard record component
      accept - the value for the accept record component
      turn - the value for the turn record component
      type - the value for the type record component
      reason - the value for the reason record component
      category - the value for the category record component
      id - the value for the id record component
      time - the value for the time record component
      repeatTime - the value for the repeatTime record component
      multipleVote - the value for the multipleVote record component
      player - the value for the player record component
      number - the value for the number record component
      color - the value for the color record component
      language - the value for the language record component
      url - the value for the url record component
      move - the value for the move record component
      value - the value for the value record component
  • Method Details

    • builder

    • toBuilder

    • withMessage

      public Localization.Command.Prompt withMessage(String message)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withHard

      public Localization.Command.Prompt withHard(String hard)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAccept

      public Localization.Command.Prompt withAccept(String accept)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTurn

      public Localization.Command.Prompt withTurn(String turn)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withType

      public Localization.Command.Prompt withType(String type)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withReason

      public Localization.Command.Prompt withReason(String reason)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withCategory

      public Localization.Command.Prompt withCategory(String category)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withId

      public Localization.Command.Prompt withId(String id)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTime

      public Localization.Command.Prompt withTime(String time)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRepeatTime

      public Localization.Command.Prompt withRepeatTime(String repeatTime)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMultipleVote

      public Localization.Command.Prompt withMultipleVote(String multipleVote)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPlayer

      public Localization.Command.Prompt withPlayer(String player)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNumber

      public Localization.Command.Prompt withNumber(String number)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withColor

      public Localization.Command.Prompt withColor(String color)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withLanguage

      public Localization.Command.Prompt withLanguage(String language)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withUrl

      public Localization.Command.Prompt withUrl(String url)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMove

      public Localization.Command.Prompt withMove(String move)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withValue

      public Localization.Command.Prompt withValue(String value)
      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.
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • hard

      public String hard()
      Returns the value of the hard record component.
      Returns:
      the value of the hard record component
    • accept

      public String accept()
      Returns the value of the accept record component.
      Returns:
      the value of the accept record component
    • turn

      public String turn()
      Returns the value of the turn record component.
      Returns:
      the value of the turn record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • reason

      public String reason()
      Returns the value of the reason record component.
      Returns:
      the value of the reason record component
    • category

      public String category()
      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • time

      public String time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component
    • repeatTime

      public String repeatTime()
      Returns the value of the repeatTime record component.
      Returns:
      the value of the repeatTime record component
    • multipleVote

      public String multipleVote()
      Returns the value of the multipleVote record component.
      Returns:
      the value of the multipleVote record component
    • player

      public String player()
      Returns the value of the player record component.
      Returns:
      the value of the player record component
    • number

      public String number()
      Returns the value of the number record component.
      Returns:
      the value of the number record component
    • color

      public String color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • language

      public String language()
      Returns the value of the language record component.
      Returns:
      the value of the language record component
    • url

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • move

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

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