MCPcopy Create free account
hub / github.com/MenoData/Time4J / withMinusSign

Method withMinusSign

base/src/main/java/net/time4j/PrettyTime.java:451–467  ·  view source on GitHub ↗
(String minusSign)

Source from the content-addressed store, hash-verified

449 * @see net.time4j.format.NumberSymbolProvider#getMinusSign(Locale)
450 */
451 public PrettyTime withMinusSign(String minusSign) {
452 if (minusSign.equals(this.minusSign)) { // NPE-check
453 return this;
454 }
455
456 return new PrettyTime(
457 this.locale,
458 this.refClock,
459 this.numsys,
460 this.zeroDigit,
461 minusSign,
462 this.emptyUnit,
463 this.weekToDays,
464 this.shortStyle,
465 this.stdListSeparator,
466 this.endListSeparator);
467 }
468
469 /**
470 * <p>Defines the time unit used for formatting an empty duration. </p>

Callers

nothing calls this directly

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected