コード例 #1
0
 private long truncateCompoundPeriod(long t) {
   long current;
   if (t >= origin) {
     long next = origin;
     do {
       current = next;
       next = chronology.add(period, current, 1);
     } while (t >= next);
   } else {
     current = origin;
     do {
       current = chronology.add(period, current, -1);
     } while (t < current);
   }
   return current;
 }
コード例 #2
0
 @Override
 public long next(long t) {
   return chronology.add(period, t, 1);
 }