Record Class LocaleSectionSpigot.Result
java.lang.Object
java.lang.Record
nl.pim16aap2.animatedarchitecture.spigot.core.config.LocaleSectionSpigot.Result
- Record Components:
locale- the locale to be used.allowClientLocale- Whether to allow the client to specify its locale.
- All Implemented Interfaces:
IConfigSectionResult
- Enclosing class:
LocaleSectionSpigot
public static record LocaleSectionSpigot.Result(Locale locale, boolean allowClientLocale)
extends Record
implements IConfigSectionResult
Represents the result of the locale configuration section.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LocaleSectionSpigot.ResultThe default result used when no data is available. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowClientLocalerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.locale()Returns the value of thelocalerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
The default result used when no data is available.
-
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
locale- the value for thelocalerecord componentallowClientLocale- the value for theallowClientLocalerecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
locale
-
allowClientLocale
public boolean allowClientLocale()Returns the value of theallowClientLocalerecord component.- Returns:
- the value of the
allowClientLocalerecord component
-