public Optional<DoubleRange> intersect(final DoubleRange other) {
		if (Double.compare(_max, other._min) <= 0 ||
			Double.compare(_min, other._max) >= 0)
		{
			return Optional.empty();
		} else {
			return Optional.of(
				DoubleRange.of(
					Math.max(_min, other._min),
					Math.min(_max, other._max)
				)
			);
		}
	}
Return the intersection of {@code this} range with the {@code other}.

@since 8.0

@param other the intersection range or {@link Optional#empty()} if there
       is none
@return the range intersection
jenetics/src/main/java/io/jenetics/util/DoubleRange.java