Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Check if there is a next stage present in the continuation.
|
Stage<DATA> |
next()
Get the stage to be invoked next or
null if no next stage is
present . |
static <DATA> Stage.Continuation<DATA> |
of(DATA result)
Create a terminal continuation from the processed data result.
|
static <DATA> Stage.Continuation<DATA> |
of(DATA result,
Stage<DATA> next)
Create a continuation from the processed data result and the stage
to be invoked next.
|
DATA |
result()
Get the data processing result.
|
public static <DATA> Stage.Continuation<DATA> of(DATA result, Stage<DATA> next)
DATA
- processed data type.result
- data processing result.next
- stage to be invoked next.next
in the processing chain
and the supplied processing result.public static <DATA> Stage.Continuation<DATA> of(DATA result)
DATA
- processed data type.result
- data processing result.next
stage in the processing chain and the supplied processing result.public DATA result()
public Stage<DATA> next()
null
if no next stage is
present
.null
if not present.public boolean hasNext()
The absence of a next stage in the continuation indicates that the data processing
reached a terminal stage and the result
of the continuation represents
the final result of the whole processing chain.
true
if there is a next stage present in the continuation,
false
otherwise.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.