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