src/main/java/fr/poulpogaz/animescandl/utils/math/Interval.java
/**
     * @return true if the intersection is non-empty
     */
@return true if the intersection is non-empty
@return true if the intersection is non - empty
public boolean nonEmptyIntersection(Interval i) {
        Bound leftMax = Utils.max(left, i.left, Bound::valueCompare);
        Bound rightMin = Utils.min(right, i.right, Bound::valueCompare);
        if (leftMax.value() == rightMin.value() && leftMax.isFinite()) {
            return leftMax.isClosed() && rightMin.isClosed();
        } else {
            return rightMin.value() > leftMax.value();
        }
    }
public boolean nonEmptyIntersection ( Interval i ) { Bound leftMax = Utils . max ( left , i . left , Bound :: valueCompare ) ; Bound rightMin = Utils . min ( right , i . right , Bound :: valueCompare ) ; if ( leftMax . value ( ) == rightMin . value ( ) && leftMax . isFinite ( ) ) { return leftMax . isClosed ( ) && rightMin . isClosed ( ) ; } else { return rightMin . value ( ) > leftMax . value ( ) ; } }
@return true if the intersection is non-empty
@return true if the intersection is non - empty