[ 
https://issues.apache.org/jira/browse/LANG-551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791878#action_12791878
 ] 

Henri Yandell commented on LANG-551:
------------------------------------

overlapsRange staying the same makes sense. Real issue is before/after.

Range[6-10] - elementBefore(5)? = true.
Range[Not 6-10] - elementBefore(5)? = ?

The range is -inf to 5, and 11 to inf. The notion of before and after with the 
two ranges doesn't make sense, so leaving it on the 6-10 seems the best thing 
to do. People can always ask if the range is inverted in their code if they're 
trying to do something weird here.

> Replace Range classes with generic version
> ------------------------------------------
>
>                 Key: LANG-551
>                 URL: https://issues.apache.org/jira/browse/LANG-551
>             Project: Commons Lang
>          Issue Type: Task
>          Components: lang.math.*
>            Reporter: Henri Yandell
>            Assignee: Henri Yandell
>             Fix For: 3.0
>
>         Attachments: Range.java
>
>
> Possible direction of deleting the math.Range classes and replacing with a 
> Range class based on Comparators.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to