Class GateConfig.Builder

java.lang.Object
dev.dokimos.core.gate.GateConfig.Builder
Enclosing class:
GateConfig

public static final class GateConfig.Builder extends Object
Builder for GateConfig.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • alpha

      public GateConfig.Builder alpha(double alpha)
      Parameters:
      alpha - the significance level @return this builder
    • seed

      public GateConfig.Builder seed(long seed)
      Parameters:
      seed - the RNG seed @return this builder
    • permutationIterations

      public GateConfig.Builder permutationIterations(int iterations)
      Parameters:
      iterations - the permutation-test iteration count @return this builder
    • bootstrapIterations

      public GateConfig.Builder bootstrapIterations(int iterations)
      Parameters:
      iterations - the bootstrap iteration count @return this builder
    • severityMargin

      public GateConfig.Builder severityMargin(double margin)
      Parameters:
      margin - the guard-2 localized-severity FAIL threshold @return this builder
    • pairing

      public GateConfig.Builder pairing(GateConfig.Pairing pairing)
      Parameters:
      pairing - the pairing strategy @return this builder
    • failOnRegression

      public GateConfig.Builder failOnRegression(boolean failOnRegression)
      Parameters:
      failOnRegression - whether a regression fails the gate @return this builder
    • failOnRemovedItems

      public GateConfig.Builder failOnRemovedItems(boolean failOnRemovedItems)
      Parameters:
      failOnRemovedItems - whether a removed item fails the gate @return this builder
    • onRemovedEvaluator

      public GateConfig.Builder onRemovedEvaluator(GateConfig.RemovedEvaluatorPolicy policy)
      Parameters:
      policy - the removed-evaluator policy @return this builder
    • bootstrapPasses

      public GateConfig.Builder bootstrapPasses(boolean bootstrapPasses)
      Parameters:
      bootstrapPasses - whether a missing-baseline bootstrap passes after writing (default true); false fails once until the new baseline is reviewed and committed
      Returns:
      this builder
    • updateBaseline

      public GateConfig.Builder updateBaseline(boolean updateBaseline)
      Parameters:
      updateBaseline - whether to overwrite the baseline and pass @return this builder
    • build

      public GateConfig build()
      Builds the configuration.
      Returns:
      a new GateConfig
      Throws:
      IllegalArgumentException - if any value is out of range