Class Source

java.lang.Object
org.eluder.coveralls.maven.plugin.domain.Source
All Implemented Interfaces:
Serializable, JsonObject

public final class Source extends Object implements JsonObject
The Class Source.
See Also:
  • Constructor Details

    • Source

      public Source(String name, String source, String digest)
      Instantiates a new source.
      Parameters:
      name - the name
      source - the source
      digest - the digest
    • Source

      public Source(String name, int lines, String digest, String classifier)
      Instantiates a new source.
      Parameters:
      name - the name
      lines - the lines
      digest - the digest
      classifier - the classifier
  • Method Details

    • getName

      public String getName()
      Gets the name.
      Returns:
      the name
    • getFullName

      public String getFullName()
      Gets the full name.
      Returns:
      the full name
    • getDigest

      public String getDigest()
      Gets the digest.
      Returns:
      the digest
    • getCoverage

      public Integer[] getCoverage()
      Gets the coverage.
      Returns:
      the coverage
    • getBranches

      public Integer[] getBranches()
      Gets the branches.
      Returns:
      the branches
    • getBranchesList

      public List<Branch> getBranchesList()
      Gets the branches list.
      Returns:
      the branches list
    • getClassifier

      public String getClassifier()
      Gets the classifier.
      Returns:
      the classifier
    • setClassifier

      public void setClassifier(String classifier)
      Sets the classifier.
      Parameters:
      classifier - the new classifier
    • addCoverage

      public void addCoverage(int lineNumber, Integer coverage)
      Adds the coverage.
      Parameters:
      lineNumber - the line number
      coverage - the coverage
    • addBranchCoverage

      public void addBranchCoverage(int lineNumber, int blockNumber, int branchNumber, int hits)
      Adds the branch coverage.
      Parameters:
      lineNumber - the line number
      blockNumber - the block number
      branchNumber - the branch number
      hits - the hits
    • merge

      public Source merge(Source source)
      Merge.
      Parameters:
      source - the source
      Returns:
      the source
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object