class MultiThresholdProvider implements ThresholdProvider {

	@Override
	public OptionalDouble getNext(int attr, double threshold) {
		checkElementIndex(attr, providers.length);
		return providers[attr].getNext(threshold);
	}

}