private List < ViewRiksdagenVoteDataBallotPartySummaryDaily > getMaxSizeViewRiksdagenVoteDataBallotPartySummaryDaily ( ) { initPartyMap ( ) ; final Optional < Entry < String , List < ViewRiksdagenVoteDataBallotPartySummaryDaily > > > first = partyMap . entrySet ( ) . stream ( ) . sorted ( ( e1 , e2 ) -> Integer . compare ( e2 . getValue ( ) . size ( ) , e1 . getValue ( ) . size ( ) ) ) . findFirst ( ) ; if ( first . isPresent ( ) ) { return first . get ( ) . getValue ( ) ; } else { return new ArrayList <> ( ) ; } }
Gets the max size view riksdagen vote data ballot party summary daily .