public static < C extends Comparable > boolean intersect ( final Range < C > range0 , final Range < C > range1 ) { checkNotNull ( range0 ) ; checkNotNull ( range1 ) ; return range0 . isConnected ( range1 ) && ! range0 . intersection ( range1 ) . isEmpty ( ) ; }
Return true if the specified ranges intersect .