Klasse Coverage.CoverageBuilder

java.lang.Object
io.jenkins.plugins.coverage.model.Coverage.CoverageBuilder
Umschließende Klasse:
Coverage

public static class Coverage.CoverageBuilder extends Object
Builder to create an cache new Coverage instances.
  • Felddetails

    • NO_COVERAGE

      public static final Coverage NO_COVERAGE
      Null object that indicates that the code coverage has not been measured.
  • Konstruktordetails

    • CoverageBuilder

      public CoverageBuilder()
  • Methodendetails

    • setTotal

      public Coverage.CoverageBuilder setTotal(int total)
      Sets the number of total items.
      Parameter:
      total - the number of total items
      Gibt zurück:
      this
    • setCovered

      public Coverage.CoverageBuilder setCovered(int covered)
      Sets the number of covered items.
      Parameter:
      covered - the number of covered items
      Gibt zurück:
      this
    • setMissed

      public Coverage.CoverageBuilder setMissed(int missed)
      Sets the number of missed items.
      Parameter:
      missed - the number of missed items
      Gibt zurück:
      this
    • build

      public Coverage build()
      Creates the new Coverage instance.
      Gibt zurück:
      the new instance