Record Class Localization.Command.Exception

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

public static record Localization.Command.Exception(String execution, String parseUnknown, String parseBoolean, String parseNumber, String parseString, String permission, String syntax) extends Record
Since:
1.7.1
  • Constructor Details

    • Exception

      public Exception(String execution, String parseUnknown, String parseBoolean, String parseNumber, String parseString, String permission, String syntax)
      Creates an instance of a Exception record class.
      Parameters:
      execution - the value for the execution record component
      parseUnknown - the value for the parseUnknown record component
      parseBoolean - the value for the parseBoolean record component
      parseNumber - the value for the parseNumber record component
      parseString - the value for the parseString record component
      permission - the value for the permission record component
      syntax - the value for the syntax record component
  • Method Details

    • builder

    • toBuilder

    • withExecution

      public Localization.Command.Exception withExecution(String execution)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withParseUnknown

      public Localization.Command.Exception withParseUnknown(String parseUnknown)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withParseBoolean

      public Localization.Command.Exception withParseBoolean(String parseBoolean)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withParseNumber

      public Localization.Command.Exception withParseNumber(String parseNumber)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withParseString

      public Localization.Command.Exception withParseString(String parseString)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPermission

      public Localization.Command.Exception withPermission(String permission)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSyntax

      public Localization.Command.Exception withSyntax(String syntax)
      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.
    • execution

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

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

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

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

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

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

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