commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] Commented: (LANG-551) Replace Range classes with generic version
Date Sat, 14 Nov 2009 02:36:39 GMT


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:
>             Project: Commons Lang
>          Issue Type: Task
>            Reporter: Henri Yandell
>            Assignee: Henri Yandell
>             Fix For: 3.0
>         Attachments:
> 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.

View raw message