public Builder withExperimentCounts(ExperimentCounts value) { this.item.impressionCounts = value.getImpressionCounts(); this.item.jointActionCounts = value.getJointActionCounts(); this.item.actionCounts = value.getActionCounts(); return this; }
public Builder withBucketCounts(BucketCounts value) { this.item.label = value.getLabel(); this.item.impressionCounts = value.getImpressionCounts(); this.item.jointActionCounts = value.getJointActionCounts(); this.item.actionCounts = value.getActionCounts(); return this; }
public Builder basedOn(BucketCounts example) { withImpressionCounts(example.impressionCounts); withJointActionCounts(example.jointActionCounts); withActionCounts(example.actionCounts); return this; }
DailyCounts getPreviousDayDailyCountAsCurrentDailyCount(DailyCounts currentDailyCount, List<DailyCounts> days, int currentDay) { DailyCounts.Builder dailyCountsBuilder = new DailyCounts.Builder() .setDate(currentDailyCount.getDate()) .withPerDay(currentDailyCount.getPerDay()) .withCumulative(days.get(currentDay - 1).getCumulative()); return dailyCountsBuilder.build(); }
@Override public ExperimentCounts clone() { ExperimentCounts cloned = (ExperimentCounts) super.clone(); if (buckets != null) { Map<Bucket.Label, BucketCounts> clonedBuckets = new HashMap<>(); for (Entry<Label, BucketCounts> entry : buckets.entrySet()) { clonedBuckets.put(entry.getKey(), entry.getValue().clone()); } cloned.setBuckets(clonedBuckets); } return cloned; }
public Builder() { this.item = new Counts(); }
public Builder withPerDay(ExperimentCounts value) { perDay_ = value; return getThis(); }
@Override public BucketCounts clone() { return (BucketCounts) super.clone(); }
public Builder() { super(); instance = new AssignmentCounts(); }
public Builder() { super(); instance = new BucketAssignmentCount(); }
@Override public ActionCounts clone() { return (ActionCounts) super.clone(); }
public Builder() { this.item = new ExperimentCounts(); }
public Builder() { this.item = new ActionCounts(); }
public Builder() { super(); instance = new TotalUsers(); }
public Builder() { this.item = new ExperimentCumulativeCounts(); }
public DailyCounts build() { return new DailyCounts(this); }
public Builder() { this.item = new BucketCounts(); }
public Builder withBucketCounts(BucketCounts value) { this.item.label = value.getLabel(); this.item.impressionCounts = value.getImpressionCounts(); this.item.jointActionCounts = value.getJointActionCounts(); this.item.actionCounts = value.getActionCounts(); return this; }
public Builder withExperimentCounts(ExperimentCounts value) { this.item.impressionCounts = value.getImpressionCounts(); this.item.jointActionCounts = value.getJointActionCounts(); this.item.actionCounts = value.getActionCounts(); return this; }
public Builder withCumulative(ExperimentCounts value) { cumulative_ = value; return getThis(); }