Class EditClassCount.Occurrences
java.lang.Object
org.variantsync.diffdetective.metadata.EditClassCount.Occurrences
- Enclosing class:
EditClassCount
Counts the occurrences of a data point across commits.
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.variantsync.functjonal.category.InplaceSemigroup<EditClassCount.Occurrences>
Combine two occurrences by adding their counts and performing a set union on the set of origin commits.private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the set of all commits in which a data point was found.int
Returns the amount how often a data point was found.void
increment
(CommitDiff commit) Report the occurrence of a relevant data point in the given CommitDiff.toString()
-
Field Details
-
ISEMIGROUP
public static org.variantsync.functjonal.category.InplaceSemigroup<EditClassCount.Occurrences> ISEMIGROUPCombine two occurrences by adding their counts and performing a set union on the set of origin commits. -
totalAmount
private int totalAmount -
uniqueCommits
-
-
Constructor Details
-
Occurrences
public Occurrences()
-
-
Method Details
-
increment
Report the occurrence of a relevant data point in the given CommitDiff.- Parameters:
commit
- The commit in which a match was found.
-
getTotalAmount
public int getTotalAmount()Returns the amount how often a data point was found. -
getAmountOfUniqueCommits
public int getAmountOfUniqueCommits()Returns the set of all commits in which a data point was found. -
toString
-