Package cdc.issues
Class IssuesCounter
java.lang.Object
cdc.issues.IssuesCounter
- All Implemented Interfaces:
IssuesCountItem
Utility used to make computations expected by
IssuesCountItem.
If hash computation is enabled, id of issues must be stored, which may require memory.
- Author:
- Damien Carbonne
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidint
-
Constructor Details
-
IssuesCounter
public IssuesCounter(boolean computeHash) - Parameters:
computeHash- Iftrue, then has is computed, which means that issues ids must be stored.
-
-
Method Details
-
consume
-
getNumberOfIssues
public int getNumberOfIssues()- Specified by:
getNumberOfIssuesin interfaceIssuesCountItem- Returns:
- The number of issues that are known by this item.
-
getIssuesHash
- Specified by:
getIssuesHashin interfaceIssuesCountItem- Returns:
- The hash of issues known by this item..
-