Package nz.org.riskscape.pipeline.ast
Class PipelineDeclaration.Found
java.lang.Object
nz.org.riskscape.pipeline.ast.PipelineDeclaration.Found
- Enclosing class:
- PipelineDeclaration
Simple value holder for the results of finding a step via the PipelineDeclaration.find(BiPredicate)
method.
Was originally a Pair
, but the type signature was pretty hideous and this makes reading the use of a find
a bit easier to comprehend.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getChain()
int
getStep()
int
hashCode()
static PipelineDeclaration.Found
last
(PipelineDeclaration decl) static PipelineDeclaration.Found
last
(PipelineDeclaration decl, StepChain chain) toString()
-
Constructor Details
-
Found
-
-
Method Details
-
last
-
last
-
append
Append a
StepChain
to the foundStepChain
, returning a newPipelineDeclaration
with the change. -
getChainIndex
public int getChainIndex()- Returns:
- the list index of the found chain within the pipeline declaration
-
getPipeline
-
getChain
-
getStep
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-