JAL-3878 Add javadocs to created classes and reformat code.
[jalview.git] / src / jalview / ws2 / ResultSupplier.java
1 package jalview.ws2;
2
3 import java.io.IOException;
4 import java.util.List;
5
6 import jalview.api.AlignViewportI;
7 import jalview.datamodel.AlignmentI;
8 import jalview.datamodel.SequenceI;
9
10 /**
11  * A generic function which supplies job result from the remote job to the
12  * worker object when the job is finished. Typically, the interface is
13  * implemented by one of the {@link WebServiceI} object methods and passed to
14  * the {@link WebServiceWorkerI} object on its creation.
15  * 
16  * @author mmwarowny
17  *
18  * @param <T>
19  *          result type
20  */
21 @FunctionalInterface
22 public interface ResultSupplier<T>
23 {
24   public T getResult(WSJob job, List<SequenceI> dataset, AlignViewportI viewport) throws IOException;
25 }