public Collection < Peer > getPeers ( EnumSet < PeerRole > roles ) { Set < Peer > ret = new HashSet <> ( getPeers ( ) . size ( ) ) ; for ( PeerRole peerRole : roles ) { ret . addAll ( peerRoleSetMap . get ( peerRole ) ) ; } return Collections . unmodifiableCollection ( ret ) ; }
Get the peers for this channel .