Exemplo n.º 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;
 }
Exemplo n.º 2
0
 @Override
 public long next(long t) {
   return chronology.add(period, t, 1);
 }