Fraction class added to math subpackage, based on this class. Thanks. Stephen
----- Original Message ----- From: <[EMAIL PROTECTED]> To: "Stephen Colebourne" <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 5:29 PM Subject: RE: [lang] Fractions > Here's Fraction again. > > Wonder if they're should be a commons.text package to extend java.text with formatters and such? > > Travis > > ---- Original Message ---- > From: Stephen Colebourne <[EMAIL PROTECTED]> > Sent: 2002-11-14 > To: Jakarta Commons Developers List <[EMAIL PROTECTED]> > Subject: [lang] Fractions > > I've taken a quick look, some comments: > > - I would like to see Fraction be immutable > final > fields are private final > get methods > > - I would like to see if else statements with {} brackets to conform with > our coding standards > > - I would like to see an Apache licence and package, to confirm the code is > a donation > > Otherwise they make sense as missing Java functionality. Would you like to > resubmit ;-) > > Stephen > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > > Just looked through the Jade api and I see some related things in the > units package, but not seeing how to "easily" convert from say inches to > meters? Unless I'm missing something. > > > > In any case, i've attached the Fraction and FractionFormat classes. > > > > > > > > ---- Original Message ---- > > From: [EMAIL PROTECTED] > > Sent: 2002-11-14 > > To: [EMAIL PROTECTED] > > Subject: Re: Conversion utilities > > > > How does this relate to http://www.dautelle.com/jade/ ? > > > > You may have covered similar ground. There are good concepts in here and > commons would seem to me to be a good ground for code like this. > > > > I would suggest submitting the fraction classes to [lang] to begin with. > > > > Stephen > > > > > from: [EMAIL PROTECTED] > > > I also have a package of conversion classes that convert different > measurements from imperial to metric and vice versa for things like Length, > Pressure, Force, etc. > > > > > > And along with that I have a Fraction and FractionFormat class that > deals with fractions (parsing, formatting, etc). > > > > > > Wonder if commons might be a good fit for that? > > > > > > Travis Reeder > > > > > > > > > -- > > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > -------------------------------------------------------------------------- -- > ---- > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>