Java 类org.apache.commons.lang.math.Range 实例源码

项目:seldon-server    文件:VariationTestingClientStrategy.java   
private VariationTestingClientStrategy(Map<Range, ClientStrategy> strategyMap) {
    this.strategyMap = strategyMap;
}
项目:seldon-server    文件:VariationPredictionStrategy.java   
public VariationPredictionStrategy(Map<Range, SimplePredictionStrategy> strategyMap) {
    this.strategyMap = strategyMap;
}
项目:FutureSonic-Server    文件:RangeOutputStream.java   
/**
 * 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());
}
项目:madsonic-server-5.0    文件:RangeOutputStream.java   
/**
 * 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());
}
项目:madsonic-server-5.0    文件:RangeOutputStream.java   
/**
 * 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());
}