public static <T extends MutableIntTuple> Stream<T> clampingStream(
        IntTuple min, IntTuple max, Stream<T> delegate)
    {
        Utils.checkForEqualSize(min, max);
        IntTuple localMin = IntTuples.copy(min);
        IntTuple localMax = IntTuples.copy(max);
        return delegate.filter(t -> 
            IntTuples.areElementsGreaterThanOrEqual(t, localMin) &&
            IntTuples.areElementsLessThan(t, localMax));
    }
public static < T extends MutableIntTuple > Stream < T > clampingStream ( IntTuple min , IntTuple max , Stream < T > delegate ) { Utils . checkForEqualSize ( min , max ) ; IntTuple localMin = IntTuples . copy ( min ) ; IntTuple localMax = IntTuples . copy ( max ) ; return delegate . filter ( t -> IntTuples . areElementsGreaterThanOrEqual ( t , localMin ) && IntTuples . areElementsLessThan ( t , localMax ) ) ; }
Returns a stream that returns the {@link MutableIntTuple}s from the
given delegate that are contained in the given bounds.<br>
<br>
Copies of the given tuples will be stored internally.<br>
<br>

@param <T> The type of the stream elements

@param min The minimum, inclusive
@param max The maximum, exclusive
@param delegate The delegate iterator
@return The stream
@throws IllegalArgumentException If the given tuples do not
have the same {@link Tuple#getSize() size}