(CalendarUnit emptyUnit)
| 490 | * @see #print(Duration, TextWidth) |
| 491 | */ |
| 492 | public PrettyTime withEmptyUnit(CalendarUnit emptyUnit) { |
| 493 | if (this.emptyUnit.equals(emptyUnit)) { |
| 494 | return this; |
| 495 | } |
| 496 | |
| 497 | return new PrettyTime( |
| 498 | this.locale, |
| 499 | this.refClock, |
| 500 | this.numsys, |
| 501 | this.zeroDigit, |
| 502 | this.minusSign, |
| 503 | emptyUnit, |
| 504 | this.weekToDays, |
| 505 | this.shortStyle, |
| 506 | this.stdListSeparator, |
| 507 | this.endListSeparator); |
| 508 | } |
| 509 | |
| 510 | /** |
| 511 | * <p>Defines the time unit used for formatting an empty duration. </p> |