commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <>
Subject Re: [LANG] support for k, M suffices when parsing numbers
Date Thu, 02 Jun 2011 15:01:47 GMT
On Thu, Jun 2, 2011 at 10:59 AM, Gary Gregory <> wrote:
> I was thinking that the class would also contain at least one toString
> method, for example toString(1000, MemoryUnit.BYTES) where MemoryUnit is an
> Enum. Useful for logging.

That's exactly where I use it, in my logging API.  I like your idea of
specifying the units, but I also like the idea of having a method that
auto-picks the largest unit possible.

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

View raw message