private boolean isSplit ( ProjectCalendar calendar , List < TimephasedWork > list ) { boolean result = false ; for ( TimephasedWork assignment : list ) { if ( calendar != null && assignment . getTotalAmount ( ) . getDuration ( ) == 0 ) { Duration calendarWork = calendar . getWork ( assignment . getStart ( ) , assignment . getFinish ( ) , TimeUnit . MINUTES ) ; if ( calendarWork . getDuration ( ) != 0 ) { result = true ; break ; } } } return result ; }
Test to determine if this is a split task .