Record Class Localization.Command.Banlist
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Banlist
- All Implemented Interfaces:
LocalizationSetting, ModerationListLocalizationSetting
- Enclosing class:
Localization.Command
public static record Localization.Command.Banlist(String empty, String nullPage, String nullPlayer, Localization.ListTypeMessage global, Localization.ListTypeMessage player)
extends Record
implements LocalizationSetting, ModerationListLocalizationSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBanlist(String empty, String nullPage, String nullPlayer, Localization.ListTypeMessage global, Localization.ListTypeMessage player) Creates an instance of aBanlistrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()empty()Returns the value of theemptyrecord component.final booleanIndicates whether some other object is "equal to" this one.global()Returns the value of theglobalrecord component.final inthashCode()Returns a hash code value for this object.nullPage()Returns the value of thenullPagerecord component.Returns the value of thenullPlayerrecord component.player()Returns the value of theplayerrecord component.final StringtoString()Returns a string representation of this record class.withNullPage(String nullPage) withNullPlayer(String nullPlayer)
-
Constructor Details
-
Banlist
public Banlist(String empty, String nullPage, String nullPlayer, Localization.ListTypeMessage global, Localization.ListTypeMessage player) Creates an instance of aBanlistrecord class.- Parameters:
empty- the value for theemptyrecord componentnullPage- the value for thenullPagerecord componentnullPlayer- the value for thenullPlayerrecord componentglobal- the value for theglobalrecord componentplayer- the value for theplayerrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withEmpty
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNullPage
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNullPlayer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withGlobal
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlayer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
empty
Returns the value of theemptyrecord component.- Specified by:
emptyin interfaceModerationListLocalizationSetting- Returns:
- the value of the
emptyrecord component
-
nullPage
Returns the value of thenullPagerecord component.- Specified by:
nullPagein interfaceModerationListLocalizationSetting- Returns:
- the value of the
nullPagerecord component
-
nullPlayer
Returns the value of thenullPlayerrecord component.- Specified by:
nullPlayerin interfaceModerationListLocalizationSetting- Returns:
- the value of the
nullPlayerrecord component
-
global
Returns the value of theglobalrecord component.- Specified by:
globalin interfaceModerationListLocalizationSetting- Returns:
- the value of the
globalrecord component
-
player
Returns the value of theplayerrecord component.- Specified by:
playerin interfaceModerationListLocalizationSetting- Returns:
- the value of the
playerrecord component
-