Package cdc.issues

Class IssuesCounter

java.lang.Object
cdc.issues.IssuesCounter
All Implemented Interfaces:
IssuesCountItem

public class IssuesCounter extends Object implements 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 Details

    • IssuesCounter

      public IssuesCounter(boolean computeHash)
      Parameters:
      computeHash - If true, then has is computed, which means that issues ids must be stored.
  • Method Details

    • consume

      public void consume(Issue issue)
    • getNumberOfIssues

      public int getNumberOfIssues()
      Specified by:
      getNumberOfIssues in interface IssuesCountItem
      Returns:
      The number of issues that are known by this item.
    • getIssuesHash

      public String getIssuesHash()
      Specified by:
      getIssuesHash in interface IssuesCountItem
      Returns:
      The hash of issues known by this item..