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

Method addTo

base/src/main/java/net/time4j/CalendarUnit.java:668–678  ·  view source on GitHub ↗
(
            T context,
            long amount
        )

Source from the content-addressed store, hash-verified

666 //~ Methoden ------------------------------------------------------
667
668 @Override
669 public T addTo(
670 T context,
671 long amount
672 ) {
673
674 PlainDate date = context.get(PlainDate.CALENDAR_DATE);
675 date = PlainDate.doAdd(this.unit, date, amount, this.policy);
676 return context.with(PlainDate.CALENDAR_DATE, date);
677
678 }
679
680 @Override
681 public long between(T start, T end) {

Callers

nothing calls this directly

Calls 3

doAddMethod · 0.95
getMethod · 0.65
withMethod · 0.65

Tested by

no test coverage detected