222223224225226227228229230231232233234
if(!def.getCalendar().hasLifeTime()) { return TimeInterval.NULL; } final Interval i = def.getCalendar().getLifeTime(); if(i.getTimeFinish() == 0) { return TimeInterval.NULL; } return factory.newTimeInterval(i.getTimeStart(), i.getTimeFinish()); }
246247248249250251252253254255256257258
final Calendar c = def.getCalendar(); final TimeInterval[] ti = new TimeInterval[c.getMarketHoursCount()]; for(int i = 0; i < c.getMarketHoursCount(); i++) { final Interval inter = c.getMarketHours(i); ti[i] = factory.newTimeInterval(inter.getTimeStart(), inter.getTimeFinish()); } factory.newSchedule(ti); return null;
236237238239240241242243244245246247248
260261262263264265266267268269270271272