[
https://issues.apache.org/jira/browse/LANG-551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777808#action_12777808
]
Henri Yandell commented on LANG-551:
------------------------------------
CharRange is a close match, except for the negated/inverted attribute.
This could be added to Range, though might be a little odd.
public boolean elementBefore(T element) {
public boolean elementAfter(T element) {
public int elementCompareTo(T element) { [based on the before]
public boolean overlapsRange(Range<T> range) {
I think these would remain the same.
public boolean contains(T element) {
public boolean containsRange(Range<T> range) {
These would be inverted.
Would also move from constructors to static builder methods per CharRange.
> Replace Range classes with generic version
> ------------------------------------------
>
> Key: LANG-551
> URL: https://issues.apache.org/jira/browse/LANG-551
> Project: Commons Lang
> Issue Type: Task
> 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.