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