private static List < Tick > buildEmptyTicks ( ZonedDateTime beginTime , ZonedDateTime endTime , int duration ) { List < Tick > emptyTicks = new ArrayList <> ( ) ; Duration tickDuration = Duration . ofSeconds ( duration ) ; ZonedDateTime tickEndTime = beginTime ; do { tickEndTime = tickEndTime . plus ( tickDuration ) ; emptyTicks . add ( new BaseTick ( tickDuration , tickEndTime ) ) ; } while ( tickEndTime . isBefore ( endTime ) ) ; return emptyTicks ; }
Builds a list of empty ticks .