public boolean overlapsWith(final IndexRange other)
    {
        Objects.requireNonNull(other, "other");
        return end > other.start && other.end > start;
    }
public boolean overlapsWith(final IndexRange other)
    {
        Objects.requireNonNull(other, "other");
        return end > other.start && other.end > start;
    }
public boolean overlapsWith ( final IndexRange other ) { Objects . requireNonNull ( other , "other" ) ; return end > other . start && other . end > start ; }
Determines whether this range overlaps with the given other one.

@param other the other range
@return true if there is at least one index that is contained in both ranges
Determines whether this range overlaps with the given other one .