Record Class Localization.Command.Rockpaperscissors

java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Rockpaperscissors
All Implemented Interfaces:
LocalizationSetting
Enclosing class:
Localization.Command

public static record Localization.Command.Rockpaperscissors(String nullPlayer, String nullGame, String wrongMove, String already, String myself, String sender, String receiver, String formatMove, String formatWin, String formatDraw, Map<String,String> strategies) extends Record implements LocalizationSetting
Since:
1.7.1
  • Constructor Details

    • Rockpaperscissors

      public Rockpaperscissors(String nullPlayer, String nullGame, String wrongMove, String already, String myself, String sender, String receiver, String formatMove, String formatWin, String formatDraw, Map<String,String> strategies)
      Creates an instance of a Rockpaperscissors record class.
      Parameters:
      nullPlayer - the value for the nullPlayer record component
      nullGame - the value for the nullGame record component
      wrongMove - the value for the wrongMove record component
      already - the value for the already record component
      myself - the value for the myself record component
      sender - the value for the sender record component
      receiver - the value for the receiver record component
      formatMove - the value for the formatMove record component
      formatWin - the value for the formatWin record component
      formatDraw - the value for the formatDraw record component
      strategies - the value for the strategies record component
  • Method Details

    • builder

    • toBuilder

    • withNullPlayer

      public Localization.Command.Rockpaperscissors withNullPlayer(String nullPlayer)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNullGame

      public Localization.Command.Rockpaperscissors withNullGame(String nullGame)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withWrongMove

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

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

      public Localization.Command.Rockpaperscissors withMyself(String myself)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSender

      public Localization.Command.Rockpaperscissors withSender(String sender)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withReceiver

      public Localization.Command.Rockpaperscissors withReceiver(String receiver)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatMove

      public Localization.Command.Rockpaperscissors withFormatMove(String formatMove)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatWin

      public Localization.Command.Rockpaperscissors withFormatWin(String formatWin)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatDraw

      public Localization.Command.Rockpaperscissors withFormatDraw(String formatDraw)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withStrategies

      public Localization.Command.Rockpaperscissors withStrategies(Map<String,String> strategies)
      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.
    • nullPlayer

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

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

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

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

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

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

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

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

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

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

      public Map<String,String> strategies()
      Returns the value of the strategies record component.
      Returns:
      the value of the strategies record component