public boolean setResult(final T result) { try { return output.setResult(translate(result)); } catch (IOException e) { return output.setException(e); } }
public void handleDone(final T value, final Result<T> result) { result.setResult(value); }
public void handleDone(final T data, final Result<T> attachment) { result.setResult(data); }
public static Result Success(Object d) { Result r = new Result(Status.SUCCESS); r.setResult(d); return r; }