public boolean overlaps(Range<T> other) {
        return (v1 == null
            ||  other.v2 == null
            ||  v1.compareTo(other.v2) <= 0)
            && (v2 == null
            ||  other.v1 == null
            ||  v2.compareTo(other.v1) >= 0);
    }
Whether two ranges overlap.
<p>
<pre><code>
// true
range(1, 3).overlaps(range(2, 4))

// false
range(1, 3).overlaps(range(5, 8))
</code></pre>
jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Range.java