Class ChainedOperationResult<T>
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.ChainedOperationResult<T>
Generic object representing the result of a unit of work (an operation) that is part of a chain
of operations.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Status code to indicate if the result is meaningful and if the next operation should be performed. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ChainedOperationResult<Boolean>
static final ChainedOperationResult<Boolean>
static final ChainedOperationResult<Boolean>
static final ChainedOperationResult<Boolean>
static final ChainedOperationResult<Boolean>
common resultsstatic final ChainedOperationResult<Long>
-
Constructor Summary
ConstructorDescriptionChainedOperationResult
(T result) Default constructor for a meaningful result, i.e.ChainedOperationResult
(T result, ChainedOperationResult.ContinuationStatus continuationStatus) Constructor for a result with the provided continuation status. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ChainedOperationResult<T>
boolean
int
hashCode()
static <T> ChainedOperationResult<T>
ignore()
static <T> ChainedOperationResult<T>
stop()
static ChainedOperationResult<Boolean>
stop
(boolean result) toString()
-
Field Details
-
TRUE_STOP
common results -
TRUE_CONTINUE
-
FALSE_STOP
-
FALSE_CONTINUE
-
FALSE_IGNORE
-
ZEROL_CONTINUE
-
-
Constructor Details
-
ChainedOperationResult
Default constructor for a meaningful result, i.e. do not perform more operations.- Parameters:
result
-
-
ChainedOperationResult
public ChainedOperationResult(T result, ChainedOperationResult.ContinuationStatus continuationStatus) Constructor for a result with the provided continuation status.- Parameters:
result
-continuationStatus
-
-
-
Method Details
-
getResult
- Returns:
- the operation result, might be null
-
getContinuationStatus
- Returns:
- status indicating if other operations should be performed
-
toString
-
hashCode
public int hashCode() -
equals
-
stop
-
stop
-
continue_
-
ignore
-