private boolean isAnyThresholdReached(E e) { for (BatchingThreshold<E> threshold : thresholds) { threshold.accumulate(e); if (threshold.isThresholdReached()) { return true; } } return false; }
private boolean isAnyThresholdReached(E e) { for (BatchingThreshold<E> threshold : thresholds) { threshold.accumulate(e); if (threshold.isThresholdReached()) { return true; } } return false; }