/** * Create a continuation from the processed data result and the stage * to be invoked next. * * @param <DATA> processed data type. * @param result data processing result. * @param next stage to be invoked next. * @return a continuation with the supplied stage to be invoked * {@link Stage.Continuation#next() next} in the processing chain * and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result, Stage<DATA> next) { return new Continuation<DATA>(result, next); }
/** * Create a continuation from the processed data result and the stage * to be invoked next. * * @param <DATA> processed data type. * @param result data processing result. * @param next stage to be invoked next. * @return a continuation with the supplied stage to be invoked * {@link Stage.Continuation#next() next} in the processing chain * and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result, Stage<DATA> next) { return new Continuation<DATA>(result, next); }
/** * Create a continuation from the processed data result and the stage * to be invoked next. * * @param <DATA> processed data type. * @param result data processing result. * @param next stage to be invoked next. * @return a continuation with the supplied stage to be invoked * {@link Stage.Continuation#next() next} in the processing chain * and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result, Stage<DATA> next) { return new Continuation<DATA>(result, next); }
/** * Create a continuation from the processed data result and the stage * to be invoked next. * * @param <DATA> processed data type. * @param result data processing result. * @param next stage to be invoked next. * @return a continuation with the supplied stage to be invoked * {@link Stage.Continuation#next() next} in the processing chain * and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result, Stage<DATA> next) { return new Continuation<DATA>(result, next); }
/** * Create a continuation from the processed data result and the stage * to be invoked next. * * @param <DATA> processed data type. * @param result data processing result. * @param next stage to be invoked next. * @return a continuation with the supplied stage to be invoked * {@link Stage.Continuation#next() next} in the processing chain * and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result, Stage<DATA> next) { return new Continuation<DATA>(result, next); }
/** * Create a terminal continuation from the processed data result. * * @param <DATA> processed data type. * @param result data processing result. * @return terminal continuation with no {@link Stage.Continuation#next() next} * stage in the processing chain and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result) { return new Continuation<DATA>(result, null); }
/** * Create a terminal continuation from the processed data result. * * @param <DATA> processed data type. * @param result data processing result. * @return terminal continuation with no {@link Stage.Continuation#next() next} * stage in the processing chain and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result) { return new Continuation<DATA>(result, null); }
/** * Create a terminal continuation from the processed data result. * * @param <DATA> processed data type. * @param result data processing result. * @return terminal continuation with no {@link Stage.Continuation#next() next} * stage in the processing chain and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result) { return new Continuation<DATA>(result, null); }
/** * Create a terminal continuation from the processed data result. * * @param <DATA> processed data type. * @param result data processing result. * @return terminal continuation with no {@link Stage.Continuation#next() next} * stage in the processing chain and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result) { return new Continuation<DATA>(result, null); }
/** * Create a terminal continuation from the processed data result. * * @param <DATA> processed data type. * @param result data processing result. * @return terminal continuation with no {@link Stage.Continuation#next() next} * stage in the processing chain and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result) { return new Continuation<DATA>(result, null); }
/** * Create a continuation from the processed data result and the stage * to be invoked next. * * @param <DATA> processed data type. * @param result data processing result. * @param next stage to be invoked next. * @return a continuation with the supplied stage to be invoked * {@link Stage.Continuation#next() next} in the processing chain * and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result, Stage<DATA> next) { return new Continuation<DATA>(result, next); }
/** * Create a continuation from the processed data result and the stage * to be invoked next. * * @param <DATA> processed data type. * @param result data processing result. * @param next stage to be invoked next. * @return a continuation with the supplied stage to be invoked * {@link Stage.Continuation#next() next} in the processing chain * and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result, Stage<DATA> next) { return new Continuation<DATA>(result, next); }
/** * Create a terminal continuation from the processed data result. * * @param <DATA> processed data type. * @param result data processing result. * @return terminal continuation with no {@link Stage.Continuation#next() next} * stage in the processing chain and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result) { return new Continuation<DATA>(result, null); }
/** * Create a terminal continuation from the processed data result. * * @param <DATA> processed data type. * @param result data processing result. * @return terminal continuation with no {@link Stage.Continuation#next() next} * stage in the processing chain and the supplied processing result. */ public static <DATA> Continuation<DATA> of(final DATA result) { return new Continuation<DATA>(result, null); }