private boolean matchesExpectations(TechnologyUsageStatisticsModel model) { if (!StringUtils.equals(this.technologyName, model.getName())) return false; if (this.expectedCount != model.getOccurrenceCount()) return false; return model.getTags().containsAll(this.expectedTags); }
private boolean matchesExpectations(TechnologyUsageStatisticsModel model) { if (!StringUtils.equals(this.technologyName, model.getName())) return false; if (this.expectedCount != model.getOccurrenceCount()) return false; return model.getTags().containsAll(this.expectedTags); }
public TechUsageStatSum add(TechnologyUsageStatisticsModel stat) { if (!"".equals(this.name) && !this.name.equals(stat.getName())) throw new IllegalArgumentException("Can't add up stats, " + this.name + " != " + stat.getName()); this.count += stat.getOccurrenceCount(); this.tags.addAll(stat.getTags()); return this; }
public TechUsageStatSum add(TechnologyUsageStatisticsModel stat) { if (!"".equals(this.name) && !this.name.equals(stat.getName())) throw new IllegalArgumentException("Can't add up stats, " + this.name + " != " + stat.getName()); this.count += stat.getOccurrenceCount(); this.tags.addAll(stat.getTags()); return this; }
Set<String> techStatTagsCoveredByGivenTag = stat.getTags().stream().filter(name -> subTagsNames.contains(name)) .collect(Collectors.toSet());
Set<String> techStatTagsCoveredByGivenTag = stat.getTags().stream().filter(name -> subTagsNames.contains(name)) .collect(Collectors.toSet());
final Set<String> placementTags = TechReportService.getPlacementTags(graphContext, stat.getTags()); TechReportService.TechReportPlacement placement = TechReportService.processPlaceLabels(graphContext, placementTags); if (placement.box == null || placement.row == null)
final Set<String> placementTags = TechReportService.getPlacementTags(graphContext, stat.getTags()); TechReportService.TechReportPlacement placement = TechReportService.processPlaceLabels(graphContext, placementTags); if (placement.box == null || placement.row == null)