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

Method minus

base/src/main/java/net/time4j/engine/TimePoint.java:312–322  ·  view source on GitHub ↗
(TimeSpan<? extends U> timeSpan)

Source from the content-addressed store, hash-verified

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

Callers 5

addMethod · 0.45
betweenMethod · 0.45
stepBackwardsMethod · 0.45
stepBackwardsMethod · 0.45
checkConsistencyMethod · 0.45

Calls 4

plusMethod · 0.95
safeNegateMethod · 0.95
subtractFromMethod · 0.65
getContextMethod · 0.45

Tested by

no test coverage detected