Uses of Interface
com.winterhavenmc.library.messagebuilder.pipeline.formatters.duration.DurationFormatter
Packages that use DurationFormatter
Package
Description
Provides an adapter for objects that expose a
Duration
.Contains formatters responsible for converting data types into localized, human-readable strings.
Provides formatting for
Duration
values into localized, human-readable strings.-
Uses of DurationFormatter in com.winterhavenmc.library.messagebuilder.pipeline.adapters.duration
Methods in com.winterhavenmc.library.messagebuilder.pipeline.adapters.duration with parameters of type DurationFormatterModifier and TypeMethodDescriptionDurationable.formatDuration
(Duration duration, ChronoUnit lowerBound, DurationFormatter durationFormatter) Uses the configuredDurationFormatter
to format the givenDuration
according to the specified precision. -
Uses of DurationFormatter in com.winterhavenmc.library.messagebuilder.pipeline.formatters
Methods in com.winterhavenmc.library.messagebuilder.pipeline.formatters that return DurationFormatterModifier and TypeMethodDescriptionFormatterContainer.durationFormatter()
Returns the value of thedurationFormatter
record component.Constructors in com.winterhavenmc.library.messagebuilder.pipeline.formatters with parameters of type DurationFormatterModifierConstructorDescriptionFormatterContainer
(LocaleProvider localeProvider, DurationFormatter durationFormatter, LocaleNumberFormatter localeNumberFormatter) Creates an instance of aFormatterContainer
record class. -
Uses of DurationFormatter in com.winterhavenmc.library.messagebuilder.pipeline.formatters.duration
Classes in com.winterhavenmc.library.messagebuilder.pipeline.formatters.duration that implement DurationFormatterModifier and TypeClassDescriptionfinal class
ADurationFormatter
implementation that localizes duration strings using configurable constants from the language file, while delegating formatting of standard durations to another formatter.final class
ADurationFormatter
implementation that uses the Time4J library'sPrettyTime
to renderDuration
values as human-readable, localized strings.Constructors in com.winterhavenmc.library.messagebuilder.pipeline.formatters.duration with parameters of type DurationFormatterModifierConstructorDescriptionLocalizedDurationFormatter
(DurationFormatter delegate, QueryHandlerFactory queryHandlerFactory) Constructs aLocalizedDurationFormatter
with a backing delegate and query handler factory.