(TimeSpan<? extends U> timeSpan)
| 268 | * @see #minus(TimeSpan) |
| 269 | */ |
| 270 | public T plus(TimeSpan<? extends U> timeSpan) { |
| 271 | |
| 272 | try { |
| 273 | return timeSpan.addTo(this.getContext()); |
| 274 | } catch (IllegalArgumentException iae) { |
| 275 | ArithmeticException ex = new ArithmeticException("Result beyond boundaries of time axis."); |
| 276 | ex.initCause(iae); |
| 277 | throw ex; |
| 278 | } |
| 279 | |
| 280 | } |
| 281 | |
| 282 | /** |
| 283 | * <p>Subtracts given time span from this time point and yields |
no test coverage detected