private static void addDecisionDataRows ( final SankeyChart chart , final Entry < String , List < ProposalCommitteeeSummary > > entry , final ViewRiksdagenCommittee vewRiksdagenCommittee ) { final Map < String , List < ProposalCommitteeeSummary > > decisionMap = entry . getValue ( ) . stream ( ) . collect ( Collectors . groupingBy ( ProposalCommitteeeSummary :: getDecision ) ) ; for ( final Entry < String , List < ProposalCommitteeeSummary > > decisionEntry : decisionMap . entrySet ( ) ) { if ( decisionEntry . getKey ( ) . length ( ) > 0 && entry . getKey ( ) . length ( ) > 0 ) { chart . addDataRow ( vewRiksdagenCommittee . getEmbeddedId ( ) . getDetail ( ) , decisionEntry . getKey ( ) , decisionEntry . getValue ( ) . size ( ) ) ; } } }
Adds the decision data rows .