private static void addDocumentHistoryByOrgData ( final DataSeries dataSeries , final Series series , final List < ViewRiksdagenOrgDocumentDailySummary > itemList ) { final Map < String , List < ViewRiksdagenOrgDocumentDailySummary > > map = itemList . parallelStream ( ) . filter ( Objects :: nonNull ) . collect ( Collectors . groupingBy ( t -> StringUtils . defaultIfBlank ( t . getDocumentType ( ) , NO_INFO ) ) ) ; final SimpleDateFormat simpleDateFormat = new SimpleDateFormat ( DD_MMM_YYYY , Locale . ENGLISH ) ; final SimpleDateFormat parseIncomingDateFormat = new SimpleDateFormat ( "yyyy-MM-dd" , Locale . ENGLISH ) ; for ( final Entry < String , List < ViewRiksdagenOrgDocumentDailySummary > > entry : map . entrySet ( ) ) { addNewDataSerie ( dataSeries , series , simpleDateFormat , parseIncomingDateFormat , entry ) ; } }
Adds the document history by org data .