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

Method inverse

base/src/main/java/net/time4j/MachineTime.java:776–784  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

774 * @since 2.0
775 */
776 public MachineTime<U> inverse() {
777
778 if (this.isEmpty()) {
779 return this;
780 }
781
782 return new MachineTime<>(Math.negateExact(this.seconds), -this.nanos, this.scale);
783
784 }
785
786 /**
787 * <p>Multiplies this duration with given factor. </p>

Callers 1

minusMethod · 0.45

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected