public static class ContainerOperationResult.GenericOperation<X> extends java.lang.Object implements ContainerOperationResult.Operation<X>
Modifier and Type | Field and Description |
---|---|
private Container |
contianer |
private java.lang.Throwable |
exception |
private X |
object |
private ContainerOperationResult.Type |
type |
Constructor and Description |
---|
GenericOperation(ContainerOperationResult.Type type,
Container contianer) |
GenericOperation(ContainerOperationResult.Type type,
Container contianer,
java.lang.Throwable exception) |
GenericOperation(ContainerOperationResult.Type type,
Container contianer,
java.lang.Throwable exception,
X object) |
GenericOperation(ContainerOperationResult.Type type,
Container contianer,
X object) |
Modifier and Type | Method and Description |
---|---|
Container |
getContainer() |
java.lang.Throwable |
getFailure() |
X |
getObject() |
ContainerOperationResult.Type |
getType() |
boolean |
hasFailed() |
private ContainerOperationResult.Type type
private Container contianer
private java.lang.Throwable exception
private X object
public GenericOperation(ContainerOperationResult.Type type, Container contianer)
public GenericOperation(ContainerOperationResult.Type type, Container contianer, X object)
public GenericOperation(ContainerOperationResult.Type type, Container contianer, java.lang.Throwable exception)
public GenericOperation(ContainerOperationResult.Type type, Container contianer, java.lang.Throwable exception, X object)
public Container getContainer()
getContainer
in interface ContainerOperationResult.Operation<X>
public boolean hasFailed()
hasFailed
in interface ContainerOperationResult.Operation<X>
public java.lang.Throwable getFailure()
getFailure
in interface ContainerOperationResult.Operation<X>
public X getObject()
getObject
in interface ContainerOperationResult.Operation<X>
public ContainerOperationResult.Type getType()
getType
in interface ContainerOperationResult.Operation<X>