mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-27 08:32:33 +00:00
19 lines
337 B
Java
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);
|
||
|
}
|
||
|
}
|