public boolean isIntersecting ( Collection < RangeSet > rangeSets ) { for ( RangeSet rs : rangeSets ) { for ( CharRange r1 : rs ) { for ( CharRange r2 : this ) { if ( r1 . intersect ( r2 ) ) { return true ; } } } } return false ; }
Returns true only if any two of RangeSet s is intersecting with each other .