/** * {@inheritDoc} */ public void offer(Double sample) { numOffered++; if (update(sample)) { numAccepted++; } }
/** * {@inheritDoc} */ public Map<Statistic, Double> get() { Map<Statistic, Double> stats = CollectionFactory.map(); for (Statistic s : getSupported()) { stats.put(s, get(s)); } return stats; }