Record Class FormatterCtx
java.lang.Object
java.lang.Record
com.winterhavenmc.library.messagebuilder.core.context.FormatterCtx
public record FormatterCtx(ConfigRepository configRepository, DurationFormatter durationFormatter, NumberFormatter localeNumberFormatter)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFormatterCtx(ConfigRepository configRepository, DurationFormatter durationFormatter, NumberFormatter localeNumberFormatter) Creates an instance of aFormatterCtxrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigRepositoryrecord component.Returns the value of thedurationFormatterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelocaleNumberFormatterrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FormatterCtx
public FormatterCtx(ConfigRepository configRepository, DurationFormatter durationFormatter, NumberFormatter localeNumberFormatter) Creates an instance of aFormatterCtxrecord class.- Parameters:
configRepository- the value for theconfigRepositoryrecord componentdurationFormatter- the value for thedurationFormatterrecord componentlocaleNumberFormatter- the value for thelocaleNumberFormatterrecord 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). -
configRepository
Returns the value of theconfigRepositoryrecord component.- Returns:
- the value of the
configRepositoryrecord component
-
durationFormatter
Returns the value of thedurationFormatterrecord component.- Returns:
- the value of the
durationFormatterrecord component
-
localeNumberFormatter
Returns the value of thelocaleNumberFormatterrecord component.- Returns:
- the value of the
localeNumberFormatterrecord component
-