public void setIsLastSubtaskOnLevel ( boolean [ ] parentIsLastSubtaskList , boolean isLastSubtask ) { this . isLastSubtaskOnLevel = new boolean [ parentIsLastSubtaskList . length + 1 ] ; for ( int i = 0 ; i < parentIsLastSubtaskList . length ; i ++ ) { this . isLastSubtaskOnLevel [ i ] = parentIsLastSubtaskList [ i ] ; } this . isLastSubtaskOnLevel [ parentIsLastSubtaskList . length ] = isLastSubtask ; }
Set the list of booleans indicating if the current branch in the subtask tree is the last one on its respective level .