private synchronized void initPartyMap ( ) { if ( partyMap == null ) { final DataContainer < ViewRiksdagenVoteDataBallotPartySummaryDaily , RiksdagenVoteDataBallotPartyPeriodSummaryEmbeddedId > partyBallotSummaryDailyDataContainer = getApplicationManager ( ) . getDataContainer ( ViewRiksdagenVoteDataBallotPartySummaryDaily . class ) ; partyMap = partyBallotSummaryDailyDataContainer . getAll ( ) . parallelStream ( ) . filter ( Objects :: nonNull ) . collect ( Collectors . groupingBy ( t -> t . getEmbeddedId ( ) . getParty ( ) ) ) ; } }
Inits the party map .