public interface PeriodFormatterFactory
Setters on the factory mutate the factory and return it, for chaining.
| Modifier and Type | Method and Description |
|---|---|
PeriodFormatter |
getFormatter()
Return a formatter based on this factory's current settings.
|
PeriodFormatterFactory |
setCountVariant(int variant)
Set the variant of the count to use.
|
PeriodFormatterFactory |
setDisplayLimit(boolean display)
Set whether limits will be displayed.
|
PeriodFormatterFactory |
setDisplayPastFuture(boolean display)
Set whether past and future will be displayed.
|
PeriodFormatterFactory |
setLocale(String localeName)
Set the name of the locale that will be used when
creating new formatters.
|
PeriodFormatterFactory |
setSeparatorVariant(int variant)
Set how separators will be displayed.
|
PeriodFormatterFactory |
setUnitVariant(int variant)
Set the variant of the time unit names to use.
|
PeriodFormatterFactory setLocale(String localeName)
localeName - the name of the LocalePeriodFormatterFactory setDisplayLimit(boolean display)
display - true if limits will be displayedPeriodFormatterFactory setDisplayPastFuture(boolean display)
display - true if past and future will be displayedPeriodFormatterFactory setSeparatorVariant(int variant)
variant - the variant indicating how separators will be displayedPeriodFormatterFactory setUnitVariant(int variant)
variant - the variant to usePeriodFormatterFactory setCountVariant(int variant)
variant - the variant to usePeriodFormatter getFormatter()