public void resetAll ( MemberId leader , Collection < MemberId > members ) { MemberId oldLeader = this . leader ; this . leader = leader ; this . members = Lists . newLinkedList ( members ) ; selectors . forEach ( s -> s . reset ( leader , this . members ) ) ; if ( ! Objects . equals ( oldLeader , leader ) ) { leaderChangeListeners . forEach ( l -> l . accept ( leader ) ) ; } }
Resets all child selectors .