(TimeSpan<? extends U> timeSpan)
| 310 | * @see #plus(TimeSpan) |
| 311 | */ |
| 312 | public T minus(TimeSpan<? extends U> timeSpan) { |
| 313 | |
| 314 | try { |
| 315 | return timeSpan.subtractFrom(this.getContext()); |
| 316 | } catch (IllegalArgumentException iae) { |
| 317 | ArithmeticException ex = new ArithmeticException("Result beyond boundaries of time axis."); |
| 318 | ex.initCause(iae); |
| 319 | throw ex; |
| 320 | } |
| 321 | |
| 322 | } |
| 323 | |
| 324 | /** |
| 325 | * <p>Adds given amount in units to this time point and yields the |
no test coverage detected