Class NextNode
- java.lang.Object
-
- de.codecentric.reedelk.platform.commons.NextNode
-
public class NextNode extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<ExecutionNode>of(ExecutionNode current, ExecutionGraph graph)static ExecutionNodeofOrThrow(ExecutionNode current, ExecutionGraph graph)Returns the successor node of the current node and it throws an exception if a node was not found.
-
-
-
Method Detail
-
of
public static Optional<ExecutionNode> of(ExecutionNode current, ExecutionGraph graph)
-
ofOrThrow
public static ExecutionNode ofOrThrow(ExecutionNode current, ExecutionGraph graph)
Returns the successor node of the current node and it throws an exception if a node was not found.- Parameters:
current- the current node for which we want to get the successor.graph- the execution graph the current node belongs to.- Returns:
- the following execution node of the current node.
- Throws:
IllegalStateException- if the next node is not present.
-
-