private void addToTotalCount ( final List < TotalTargetCountActionStatus > targetCountActionStatus ) { if ( targetCountActionStatus == null ) { statusTotalCountMap . put ( TotalTargetCountStatus . Status . NOTSTARTED , totalTargetCount ) ; return ; } statusTotalCountMap . put ( Status . RUNNING , 0L ) ; Long notStartedTargetCount = totalTargetCount ; for ( final TotalTargetCountActionStatus item : targetCountActionStatus ) { addToTotalCount ( item ) ; notStartedTargetCount -= item . getCount ( ) ; } statusTotalCountMap . put ( TotalTargetCountStatus . Status . NOTSTARTED , notStartedTargetCount ) ; }
Populate all target status to a the given map