All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vtom.vertx.pipeline.step.VtmStepContext Maven / Gradle / Ivy

There is a newer version: 1.1-beta
Show newest version
package io.vtom.vertx.pipeline.step;

import io.enoa.toolkit.digest.UUIDKit;

public class VtmStepContext {


  private String id;
  private int ord;
  private int after;
  private StepStack stepstack;

  VtmStepContext(StepStack stepstack) {
    this.stepstack = stepstack;
    this.id = UUIDKit.next(false);
  }

  public static  VtmStepContext context(Step step) {
    return step.context();
  }

  Step step() {
    return new Step<>(this);
  }

  VtmStepContext id(String id) {
    this.id = id;
    return this;
  }

  VtmStepContext ord(int ord) {
    this.ord = ord;
    return this;
  }

  VtmStepContext after(int after) {
    this.after = after;
    return this;
  }

  public String id() {
    return id;
  }

  public int ord() {
    return ord;
  }

  public int after() {
    return after;
  }

  public StepStack stepstack() {
    return stepstack;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy