private static void addPoliticanData ( final List < ViewRiksdagenVoteDataBallotPoliticianSummaryDaily > list , final DataSeries dataSeries , final SimpleDateFormat simpleDateFormat , final Function < ViewRiksdagenVoteDataBallotPoliticianSummaryDaily , Object > t ) { dataSeries . newSeries ( ) ; for ( final ViewRiksdagenVoteDataBallotPoliticianSummaryDaily viewRiksdagenVoteDataBallotPoliticianSummaryDaily : list ) { if ( viewRiksdagenVoteDataBallotPoliticianSummaryDaily != null ) { dataSeries . add ( simpleDateFormat . format ( viewRiksdagenVoteDataBallotPoliticianSummaryDaily . getEmbeddedId ( ) . getVoteDate ( ) ) , t . apply ( viewRiksdagenVoteDataBallotPoliticianSummaryDaily ) ) ; } } }
Adds the politican data .