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

Method plus

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

Source from the content-addressed store, hash-verified

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

Callers 7

minusMethod · 0.95
addMethod · 0.45
betweenMethod · 0.45
addMethod · 0.45
stepForwardMethod · 0.45
stepForwardMethod · 0.45
getDateMethod · 0.45

Calls 4

getChronologyMethod · 0.95
addToMethod · 0.65
getContextMethod · 0.45
getRuleMethod · 0.45

Tested by

no test coverage detected