private VariationTestingClientStrategy(Map<Range, ClientStrategy> strategyMap) { this.strategyMap = strategyMap; }
public VariationPredictionStrategy(Map<Range, SimplePredictionStrategy> strategyMap) { this.strategyMap = strategyMap; }
/** * Wraps the given output stream in a RangeOutputStream, using the values * in the given range, unless the range is <code>null</code> in which case * the original OutputStream is returned. * * @param out The output stream to wrap in a RangeOutputStream. * @param range The range, may be <code>null</code>. * @return The possibly wrapped output stream. */ public static OutputStream wrap(OutputStream out, Range range) { if (range == null) { return out; } return new RangeOutputStream(out, range.getMinimumLong(), range.getMaximumLong()); }