Record Class Localization.Command.Minesweeper

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

public static record Localization.Command.Minesweeper(String alreadyInGame, String wrongParameters, String wrongGame, String wrongMove, Localization.Command.Minesweeper.Cell cell, String line, String flagEnabled, String flagDisabled, String seed, String formatStart, String formatMove, String formatWin, String formatLose) extends Record implements LocalizationSetting
Since:
1.7.1
  • Constructor Details

    • Minesweeper

      public Minesweeper(String alreadyInGame, String wrongParameters, String wrongGame, String wrongMove, Localization.Command.Minesweeper.Cell cell, String line, String flagEnabled, String flagDisabled, String seed, String formatStart, String formatMove, String formatWin, String formatLose)
      Creates an instance of a Minesweeper record class.
      Parameters:
      alreadyInGame - the value for the alreadyInGame record component
      wrongParameters - the value for the wrongParameters record component
      wrongGame - the value for the wrongGame record component
      wrongMove - the value for the wrongMove record component
      cell - the value for the cell record component
      line - the value for the line record component
      flagEnabled - the value for the flagEnabled record component
      flagDisabled - the value for the flagDisabled record component
      seed - the value for the seed record component
      formatStart - the value for the formatStart record component
      formatMove - the value for the formatMove record component
      formatWin - the value for the formatWin record component
      formatLose - the value for the formatLose record component
  • Method Details

    • builder

    • toBuilder

    • withAlreadyInGame

      public Localization.Command.Minesweeper withAlreadyInGame(String alreadyInGame)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withWrongParameters

      public Localization.Command.Minesweeper withWrongParameters(String wrongParameters)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withWrongGame

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

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

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

      public Localization.Command.Minesweeper withLine(String line)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFlagEnabled

      public Localization.Command.Minesweeper withFlagEnabled(String flagEnabled)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFlagDisabled

      public Localization.Command.Minesweeper withFlagDisabled(String flagDisabled)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSeed

      public Localization.Command.Minesweeper withSeed(String seed)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatStart

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

      public Localization.Command.Minesweeper 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.Minesweeper withFormatWin(String formatWin)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatLose

      public Localization.Command.Minesweeper withFormatLose(String formatLose)
      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.
    • alreadyInGame

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

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

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

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

      Returns the value of the cell record component.
      Returns:
      the value of the cell record component
    • line

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

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

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

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

      public String formatStart()
      Returns the value of the formatStart record component.
      Returns:
      the value of the formatStart 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
    • formatLose

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