public final class Operation<I,O>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Operation.Listener<I,O> |
static class |
Operation.SimpleListener<I,O> |
Modifier and Type | Method and Description |
---|---|
static <I,O> Operation<I,O> |
complete(I input,
O output) |
void |
dispatchCurrentState(Operation.Listener<I,O> listener) |
static <I,O> Operation<I,O> |
error(I input,
O output,
java.lang.Throwable error) |
java.lang.Throwable |
getError() |
I |
getInput() |
O |
getOutput() |
boolean |
isRunning() |
static <I,O> Operation<I,O> |
running(I input) |
public static <I,O> Operation<I,O> running(I input)
public static <I,O> Operation<I,O> complete(I input, O output)
public static <I,O> Operation<I,O> error(I input, O output, java.lang.Throwable error)
public void dispatchCurrentState(Operation.Listener<I,O> listener)
public I getInput()
public O getOutput()
public boolean isRunning()
public java.lang.Throwable getError()