public static boolean beenDone(@Scope int scope,String tag,CountChecker numberOfTimes){
  List<Long> tagSeenDates=tagLastSeenMap.get(tag);
  if (tagSeenDates.isEmpty()) {
    return false;
  }
  if (scope == THIS_APP_INSTALL) {
    return numberOfTimes.check(tagSeenDates.size());
  }
 else   if (scope == THIS_APP_SESSION) {
    int counter=0;
    for (    String tagFromList : sessionList) {
      if (tagFromList.equals(tag)) {
        counter++;
      }
    }
    return numberOfTimes.check(counter);
  }
 else {
    int counter=0;
    for (    Long seenDate : tagSeenDates) {
      if (seenDate > lastAppUpdatedTime) {
        counter++;
      }
    }
    return numberOfTimes.check(counter);
  }
}

public static boolean beenDone ( @ Scope int scope , String tag , CountChecker numberOfTimes ) { List < Long > tagSeenDates = tagLastSeenMap . get ( tag ) ; if ( tagSeenDates . isEmpty ( ) ) { return false ; } if ( scope == THIS_APP_INSTALL ) { return numberOfTimes . check ( tagSeenDates . size ( ) ) ; } else if ( scope == THIS_APP_SESSION ) { int counter = 0 ; for ( String tagFromList : sessionList ) { if ( tagFromList . equals ( tag ) ) { counter ++ ; } } return numberOfTimes . check ( counter ) ; } else { int counter = 0 ; for ( Long seenDate : tagSeenDates ) { if ( seenDate > lastAppUpdatedTime ) { counter ++ ; } } return numberOfTimes . check ( counter ) ; } }
checks if a tag has been marked done within a given scope a specific number of times .
