org.refactoringminer.api.Churn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of refactoring-miner Show documentation
Show all versions of refactoring-miner Show documentation
RefactoringMiner is a library/API written in Java that can detect refactorings applied in the history of a Java project.
package org.refactoringminer.api;
public class Churn {
private final int linesAdded;
private final int linesRemoved;
public Churn(int linesAdded, int linesRemoved) {
this.linesAdded = linesAdded;
this.linesRemoved = linesRemoved;
}
public int getLinesAdded() {
return linesAdded;
}
public int getLinesRemoved() {
return linesRemoved;
}
public int getChurn() {
return linesAdded + linesRemoved;
}
}