Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 67678 invoked from network); 14 Nov 2002 23:07:38 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Nov 2002 23:07:38 -0000 Received: (qmail 18266 invoked by uid 97); 14 Nov 2002 23:08:38 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 18246 invoked by uid 97); 14 Nov 2002 23:08:37 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 18220 invoked by uid 98); 14 Nov 2002 23:08:36 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Reply-To: From: "Steven Caswell" To: "'Jakarta Commons Developers List'" Subject: RE: [lang] Money/Units/Quantities [was Re: Conversion utilities] Date: Thu, 14 Nov 2002 18:07:33 -0500 Message-ID: <002301c28c32$9d34eca0$7b00a8c0@YellowJacket> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <006001c28c24$dac12ec0$675d22d9@oemcomputer> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have a Money class that I can contribute to get the ball rolling. Steven Caswell steven@caswell.name a.k.a Mungo Knotwise of Michel Delving "One ring to rule them all, one ring to find them..." > -----Original Message----- > From: Stephen Colebourne [mailto:scolebourne@btopenworld.com] > Sent: Thursday, November 14, 2002 4:29 PM > To: Jakarta Commons Developers List > Subject: [lang] Money/Units/Quantities [was Re: Conversion utilities] > > > http://www.dautelle.com/jade is the most well known units and > quantities package. It also follows the JSR on the subject. > In some ways, it would be nice to see this work brought under > the Jakarta Commons group, as there is much useful code there. > > Even if we don't intend to have a whole units package in > [lang], we should probably have Money and Currency classes. > They are pretty fundamental to many business applications. (I > don't think that a [money] is required here > ??) > > Stephen > > ----- Original Message ----- > From: "Henri Yandell" > To: "Jakarta Commons Developers List" > Cc: > Sent: Thursday, November 14, 2002 7:54 PM > Subject: Re: Conversion utilities > > > > > > > > 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. > > > > Hen > > > > > > -- > > To unsubscribe, e-mail: > > > For additional commands, e-mail: > > > > > > -- > To unsubscribe, e-mail: > unsubscribe@jakarta.apache.org> > For > additional commands, > e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: