public class

ChainedOperationResult

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.ChainedOperationResult<T>

Class Overview

Generic object representing the result of a unit of work (an operation) that is part of a chain of operations.

Summary

Nested Classes
enum ChainedOperationResult.ContinuationStatus Status code to indicate if the result is meaningful and if the next operation should be performed. 
Fields
public static final ChainedOperationResult<Boolean> FALSE_CONTINUE
public static final ChainedOperationResult<Boolean> FALSE_IGNORE
public static final ChainedOperationResult<Boolean> FALSE_STOP
public static final ChainedOperationResult<Boolean> TRUE_CONTINUE
public static final ChainedOperationResult<Boolean> TRUE_STOP common results
public static final ChainedOperationResult<Long> ZEROL_CONTINUE
Public Constructors
ChainedOperationResult(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.
Public Methods
static <T> ChainedOperationResult<T> continue_()
boolean equals(Object obj)
ChainedOperationResult.ContinuationStatus getContinuationStatus()
T getResult()
int hashCode()
static <T> ChainedOperationResult<T> ignore()
static <T> ChainedOperationResult<T> stop()
static ChainedOperationResult<Boolean> stop(boolean result)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final ChainedOperationResult<Boolean> FALSE_CONTINUE

public static final ChainedOperationResult<Boolean> FALSE_IGNORE

public static final ChainedOperationResult<Boolean> FALSE_STOP

public static final ChainedOperationResult<Boolean> TRUE_CONTINUE

public static final ChainedOperationResult<Boolean> TRUE_STOP

common results

public static final ChainedOperationResult<Long> ZEROL_CONTINUE

Public Constructors

public ChainedOperationResult (T result)

Default constructor for a meaningful result, i.e. do not perform more operations.

public ChainedOperationResult (T result, ChainedOperationResult.ContinuationStatus continuationStatus)

Constructor for a result with the provided continuation status.

Public Methods

public static ChainedOperationResult<T> continue_ ()

public boolean equals (Object obj)

public ChainedOperationResult.ContinuationStatus getContinuationStatus ()

Returns
  • status indicating if other operations should be performed

public T getResult ()

Returns
  • the operation result, might be null

public int hashCode ()

public static ChainedOperationResult<T> ignore ()

public static ChainedOperationResult<T> stop ()

public static ChainedOperationResult<Boolean> stop (boolean result)

public String toString ()