public Optional<IntRange> intersect(final IntRange other) {
		if (_max <= other._min || _min >= other._max) {
			return Optional.empty();
		} else {
			return Optional.of(
				IntRange.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/IntRange.java