}
}
// add result set if matches found for this seismic area
if (matches.size() > 0) {
QuakeSet set = new QuakeSet();
set.setSeismicRegion(seis.m_seismicCode);
set.setSeismicName(seis.m_seismicName);
Region[] regions = new Region[rgncnt];
int fill = 0;
for (int j = 0; j < rgnhits.length; j++) {
if (rgnhits[j]) {
regions[fill++] = m_regions[j];
}
}
set.setRegions(regions);
set.setQuakes((Quake[])matches.
toArray(new Quake[matches.size()]));
sets.add(set);
}
}