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