commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <>
Subject Re: Conversion utilities
Date Thu, 14 Nov 2002 19:54:58 GMT

On Thu, 14 Nov 2002, Jeff Varszegi wrote:

> Janek,
> I made an interface called Range that is supported by classes called
> ComparableRange etc.  The ComparableRange class can use any objects
> that support Comparable (or, alternately, any objects with a supplied
> Comparator), and I also made specific versions for Date and Double to

+1. Why did no one think of this before? We're all fined one weeks pay.

> eliminate unnecessary casting.  I needed the Date one for code I'm
> writing.  I didn't get the time to implement any for primitive types
> yet.

> Range supports disjoint ranges of values, checking to see if a
> value falls within the range, merging two ranges, etc.

So this is like NumberRange, but genericises it and makes it cool?

> I will send my code as soon as I can-- right now I'm setting up a home
> network, and my laptop isn't on it yet.  In the meantime, can you post
> the CurrencyRange code you've got?  Thanks a lot. I definitely think
> it will be of general-purpose application.  I don't know of any
> quantities library either, but I'd be thrilled to take a look at one.

Jade's the only one I've heard of. By a guy over in .fr I think.
For quantities that is, always heard good things of it.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message