示例#1
0
 public boolean setResult(final T result) {
   try {
     return output.setResult(translate(result));
   } catch (IOException e) {
     return output.setException(e);
   }
 }
示例#2
0
 public void handleDone(final T value, final Result<T> result) {
   result.setResult(value);
 }
示例#3
0
 public void handleDone(final T data, final Result<T> attachment) {
   result.setResult(data);
 }
示例#4
0
文件: Result.java 项目: rick-li/quiz
 public static Result Success(Object d) {
   Result r = new Result(Status.SUCCESS);
   r.setResult(d);
   return r;
 }