(MachineTime<U> other)
| 1062 | * @since 3.20/4.16 |
| 1063 | */ |
| 1064 | @Override |
| 1065 | public int compareTo(MachineTime<U> other) { |
| 1066 | |
| 1067 | if (this.scale == other.scale) { |
| 1068 | if (this.seconds < other.seconds) { |
| 1069 | return -1; |
| 1070 | } else if (this.seconds > other.seconds) { |
| 1071 | return 1; |
| 1072 | } else { |
| 1073 | return (this.nanos - other.nanos); |
| 1074 | } |
| 1075 | } else { |
| 1076 | throw new ClassCastException("Different time scales."); |
| 1077 | } |
| 1078 | |
| 1079 | } |
| 1080 | |
| 1081 | @Override |
| 1082 | public boolean equals(Object obj) { |
no outgoing calls
no test coverage detected