/*
 *  BSD License (http://www.galagosearch.org/license)
 */
package org.lemurproject.galago.core.eval;

import java.util.List;

/**
 * Stores a list of returned ScoredDocuments for a query.
 *
 * @author sjh
 */
public class QueryResults {

  private String query;
  private List<EvalDoc> rankedList;

  public QueryResults(String query, List<EvalDoc> rankedList) {
    this.query = query;
    this.rankedList = rankedList;
  }

  public Iterable<EvalDoc> getIterator() {
    return rankedList;
  }

  public int size() {
    return rankedList.size();
  }
}

@@ -98,16 +98,44 @@
 .eval;%0A%0A
+import java.util.ArrayList;%0A
 import j
@@ -324,16 +324,116 @@
 dList;%0A%0A
+  public QueryResults(List%3C? extends EvalDoc%3E rankedList) %7B%0A    this(%22unknown-id%22, rankedList);%0A  %7D%0A
   public
@@ -461,24 +461,34 @@
 query, List%3C
+? extends 
 EvalDoc%3E ran
@@ -544,16 +544,32 @@
 dList = 
+new ArrayList%3C%3E(
 rankedLi
@@ -562,32 +562,33 @@
 ist%3C%3E(rankedList
+)
 ;%0A  %7D%0A%0A  public 

Add an "unknown-id" constructor.