Klasse CoverageLeaf

java.lang.Object
io.jenkins.plugins.coverage.model.CoverageLeaf
Alle implementierten Schnittstellen:
Serializable

public final class CoverageLeaf extends Object implements Serializable
A leaf in the coverage hierarchy. A leaf is a non-divisible coverage metric like line or branch coverage.
Autor:
Ullrich Hafner
Siehe auch:
  • Konstruktordetails

    • CoverageLeaf

      public CoverageLeaf(CoverageMetric metric, Coverage coverage)
      Creates a new leaf with the given coverage for the specified metric.
      Parameter:
      metric - the coverage metric
      coverage - the coverage of the element
  • Methodendetails

    • getMetric

      public CoverageMetric getMetric()
    • getCoverage

      public Coverage getCoverage(CoverageMetric searchMetric)
      Returns the coverage for the specified metric.
      Parameter:
      searchMetric - the metric to get the coverage for
      Gibt zurück:
      coverage ratio
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object