All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.refactoringminer.api.Churn Maven / Gradle / Ivy

Go to download

RefactoringMiner is a library/API written in Java that can detect refactorings applied in the history of a Java project.

There is a newer version: 3.0.9
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy