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