T - Result type.public class VisorEither<T> extends Object implements Externalizable
| Constructor and Description |
|---|
VisorEither()
Default constructor.
|
VisorEither(T res) |
VisorEither(Throwable error) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
failed() |
Throwable |
getError() |
T |
getResult() |
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public VisorEither()
public VisorEither(Throwable error)
error - Exception on execution.public VisorEither(T res)
res - Result.public boolean failed()
true If failed on execution.public Throwable getError()
public T getResult()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017