For example, builder.appendDays().appendSeparator(",").appendHours()
will only output the comma if both the days and hours fields are output.
The text will be parsed case-insensitively.
Note: appending a separator discontinues any further work on the latest appended field. @param text the text to use as a separator @return this PeriodFormatterBuilder @throws IllegalStateException if this separator follows a previous one
|
|
|
|