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

io.vtom.vertx.pipeline.lifecycle.skip.SkipSure Maven / Gradle / Ivy

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

import java.util.Set;

public class SkipSure {

  private boolean cond;
  private Skip skip;


  SkipSure(Skip skip, boolean cond) {
    this.cond = cond;
    this.skip = skip;
  }

  public Skip skipId(String id) {
    if (this.cond)
      this.skip.context.id(id);
    return this.skip;
  }

  public Skip skipId(Set ids) {
    if (this.cond)
      this.skip.context.id(ids);
    return this.skip;
  }

  public Skip skipOrd(Integer ord) {
    if (this.cond)
      this.skip.context.ord(ord);
    return this.skip;
  }

  public Skip skipOrd(Set ords) {
    if (this.cond)
      this.skip.context.ord(ords);
    return this.skip;
  }

  public Skip all() {
    if (this.cond)
      this.skip.context.all();
    return this.skip;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy