Record Class FormatterContainer
java.lang.Object
java.lang.Record
com.winterhavenmc.library.messagebuilder.pipeline.formatters.FormatterContainer
public record FormatterContainer(LocaleProvider localeProvider, DurationFormatter durationFormatter, LocaleNumberFormatter localeNumberFormatter)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFormatterContainer
(LocaleProvider localeProvider, DurationFormatter durationFormatter, LocaleNumberFormatter localeNumberFormatter) Creates an instance of aFormatterContainer
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedurationFormatter
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelocaleNumberFormatter
record component.Returns the value of thelocaleProvider
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
FormatterContainer
public FormatterContainer(LocaleProvider localeProvider, DurationFormatter durationFormatter, LocaleNumberFormatter localeNumberFormatter) Creates an instance of aFormatterContainer
record class.- Parameters:
localeProvider
- the value for thelocaleProvider
record componentdurationFormatter
- the value for thedurationFormatter
record componentlocaleNumberFormatter
- the value for thelocaleNumberFormatter
record component
-
-
Method Details
-
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. -
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. -
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)
. -
localeProvider
Returns the value of thelocaleProvider
record component.- Returns:
- the value of the
localeProvider
record component
-
durationFormatter
Returns the value of thedurationFormatter
record component.- Returns:
- the value of the
durationFormatter
record component
-
localeNumberFormatter
Returns the value of thelocaleNumberFormatter
record component.- Returns:
- the value of the
localeNumberFormatter
record component
-