public List<Long> getSitesForPartitions(int[] partitions) {
        ArrayList<Long> all_sites = new ArrayList<Long>();
        for (int p : partitions) {
            List<Long> sites = getSitesForPartition(p);
            for (long site : sites)
            {
                all_sites.add(site);
            }
        }
        return all_sites;
    }
public List < Long > getSitesForPartitions ( int [ ] partitions ) { ArrayList < Long > all_sites = new ArrayList < Long > ( ) ; for ( int p : partitions ) { List < Long > sites = getSitesForPartition ( p ) ; for ( long site : sites ) { all_sites . add ( site ) ; } } return all_sites ; }
Get the ids of all sites that contain a copy of ANY of
the given partitions.
@param partitions as ArrayList