public Evaluator sync ( Map < String , List < Subscription > > subs ) { Set < String > removed = subscriptions . keySet ( ) ; removed . removeAll ( subs . keySet ( ) ) ; removed . forEach ( this :: removeGroupSubscriptions ) ; subs . forEach ( this :: addGroupSubscriptions ) ; return this ; }
Synchronize the internal set of subscriptions with the map that is passed in .