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 Fri, 06 Nov 2009 07:22:41 GMT


Henri Yandell commented on LANG-551:

Thanks Sebb. Both minor points fixed.

I'll work on the test for this - obviously wanting to make sure I cover all of the old use
cases and get some new ones in.

Two open questions I have are:

1) Should it be Serializable
2) How do I do the following:

The class itself will be a generic on <T>, nothing special. I then want a particular
pair of the constructors to only allow T's that extend Comparable. Anyone have any ideas how
to do that?

Do I need to setup a subclass for those two constructors that are generic on <T extends
Comparable<? super T>>, should I rely on runtime checking or is there a better way?

> Replace Range classes with generic version
> ------------------------------------------
>                 Key: LANG-551
>                 URL:
>             Project: Commons Lang
>          Issue Type: Task
>            Reporter: 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