()
| 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> |