private ArrayModifiableDBIDs mergeIDs(List<? extends DoubleDBIDList> queryResults,DBIDs... ids){
  ModifiableDBIDs result=DBIDUtil.newHashSet();
  for (  DBIDs dbids : ids) {
    result.addDBIDs(dbids);
  }
  for (  DoubleDBIDList queryResult : queryResults) {
    result.addDBIDs(queryResult);
  }
  return DBIDUtil.newArray(result);
}

private ArrayModifiableDBIDs mergeIDs ( List < ? extends DoubleDBIDList > queryResults , DBIDs ... ids ) { ModifiableDBIDs result = DBIDUtil . newHashSet ( ) ; for ( DBIDs dbids : ids ) { result . addDBIDs ( dbids ) ; } for ( DoubleDBIDList queryResult : queryResults ) { result . addDBIDs ( queryResult ) ; } return DBIDUtil . newArray ( result ) ; }
merges the ids of the query result with the specified ids .
