serval-dna/java/org/servalproject/servaldna/ResultList.java
2014-02-20 15:35:31 +10:30

19 lines
337 B
Java

package org.servalproject.servaldna;
import java.util.List;
/**
* Created by jeremy on 20/02/14.
*/
public class ResultList<T> implements AsyncResult<T> {
private final List<T> results;
public ResultList(List<T> results){
this.results = results;
}
@Override
public void result(T nextResult) {
results.add(nextResult);
}
}