Record Class Localization.Command.Whitelist

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

public static record Localization.Command.Whitelist(String empty, String nullPage, String nullPlayer, String nullType, Localization.ReasonMap reasons, String alreadyAdd, String alreadyOff, String alreadyOn, String alreadyRemove, String formatAdd, String formatOff, String formatOn, String formatRemove, String person, String connectionAttempt, Localization.ListTypeMessage global, Localization.ListTypeMessage player) extends Record implements LocalizationSetting, ModerationListLocalizationSetting
Since:
1.7.1
  • Constructor Details

    • Whitelist

      public Whitelist(String empty, String nullPage, String nullPlayer, String nullType, Localization.ReasonMap reasons, String alreadyAdd, String alreadyOff, String alreadyOn, String alreadyRemove, String formatAdd, String formatOff, String formatOn, String formatRemove, String person, String connectionAttempt, Localization.ListTypeMessage global, Localization.ListTypeMessage player)
      Creates an instance of a Whitelist record class.
      Parameters:
      empty - the value for the empty record component
      nullPage - the value for the nullPage record component
      nullPlayer - the value for the nullPlayer record component
      nullType - the value for the nullType record component
      reasons - the value for the reasons record component
      alreadyAdd - the value for the alreadyAdd record component
      alreadyOff - the value for the alreadyOff record component
      alreadyOn - the value for the alreadyOn record component
      alreadyRemove - the value for the alreadyRemove record component
      formatAdd - the value for the formatAdd record component
      formatOff - the value for the formatOff record component
      formatOn - the value for the formatOn record component
      formatRemove - the value for the formatRemove record component
      person - the value for the person record component
      connectionAttempt - the value for the connectionAttempt record component
      global - the value for the global record component
      player - the value for the player record component
  • Method Details

    • builder

    • toBuilder

    • withEmpty

      public Localization.Command.Whitelist withEmpty(String empty)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNullPage

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

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

      public Localization.Command.Whitelist withNullType(String nullType)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withReasons

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

      public Localization.Command.Whitelist withAlreadyAdd(String alreadyAdd)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAlreadyOff

      public Localization.Command.Whitelist withAlreadyOff(String alreadyOff)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAlreadyOn

      public Localization.Command.Whitelist withAlreadyOn(String alreadyOn)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAlreadyRemove

      public Localization.Command.Whitelist withAlreadyRemove(String alreadyRemove)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatAdd

      public Localization.Command.Whitelist withFormatAdd(String formatAdd)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatOff

      public Localization.Command.Whitelist withFormatOff(String formatOff)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatOn

      public Localization.Command.Whitelist withFormatOn(String formatOn)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFormatRemove

      public Localization.Command.Whitelist withFormatRemove(String formatRemove)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPerson

      public Localization.Command.Whitelist withPerson(String person)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withConnectionAttempt

      public Localization.Command.Whitelist withConnectionAttempt(String connectionAttempt)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withGlobal

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

      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.
    • empty

      public String empty()
      Returns the value of the empty record component.
      Specified by:
      empty in interface ModerationListLocalizationSetting
      Returns:
      the value of the empty record component
    • nullPage

      public String nullPage()
      Returns the value of the nullPage record component.
      Specified by:
      nullPage in interface ModerationListLocalizationSetting
      Returns:
      the value of the nullPage record component
    • nullPlayer

      public String nullPlayer()
      Returns the value of the nullPlayer record component.
      Specified by:
      nullPlayer in interface ModerationListLocalizationSetting
      Returns:
      the value of the nullPlayer record component
    • nullType

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

      public Localization.ReasonMap reasons()
      Returns the value of the reasons record component.
      Returns:
      the value of the reasons record component
    • alreadyAdd

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

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

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

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

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

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

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

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

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

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

      Returns the value of the global record component.
      Specified by:
      global in interface ModerationListLocalizationSetting
      Returns:
      the value of the global record component
    • player

      Returns the value of the player record component.
      Specified by:
      player in interface ModerationListLocalizationSetting
      Returns:
      the value of the player record component