public interface DurationFormatterFactory
Setters on the factory mutate the factory and return it, for chaining.
| Modifier and Type | Method and Description |
|---|---|
DurationFormatter |
getFormatter()
Return a formatter based on this factory's current settings.
|
DurationFormatterFactory |
setFallback(DateFormatter fallback)
Set a fallback formatter for durations over a given limit.
|
DurationFormatterFactory |
setFallbackLimit(long fallbackLimit)
Set a fallback limit for durations over a given limit.
|
DurationFormatterFactory |
setLocale(String localeName)
Set the name of the locale that will be used when
creating new formatters.
|
DurationFormatterFactory |
setPeriodBuilder(PeriodBuilder builder)
Set the builder used by the factory.
|
DurationFormatterFactory |
setPeriodFormatter(PeriodFormatter formatter)
Set the period formatter used by the factory.
|
DurationFormatterFactory |
setTimeZone(TimeZone timeZone)
Set the name of the locale that will be used when
creating new formatters.
|
DurationFormatterFactory setPeriodFormatter(PeriodFormatter formatter)
formatter - the formatter to useDurationFormatterFactory setPeriodBuilder(PeriodBuilder builder)
builder - the builder to useDurationFormatterFactory setFallback(DateFormatter fallback)
fallback - the fallback formatter to use, or nullDurationFormatterFactory setFallbackLimit(long fallbackLimit)
fallbackLimit - the fallback limit to use, or 0 if none is desired.DurationFormatterFactory setLocale(String localeName)
localeName - the name of the LocaleDurationFormatterFactory setTimeZone(TimeZone timeZone)
timeZone - The time zone to set.DurationFormatter getFormatter()