I'm certainly interested in type conversion problems. Are you working with the existing commons-convert project in the sandbox?

Kris

Ron Blaschke wrote:

Some time ago, I came to this group with a proposal for a generic type
conversion library.  As a refresher, it is a graph based solution,
where you just drop in your converters and the library will try to
figure out a possible path.

Some example conversions that are working include
 - String -> Integer (via String -> Long -> Integer path)
 - u[] -> v[], given the library knows how to convert u -> v (eg, you
 can simple say
final byte[] bytes = converter.convert(new int[]{1,2,3}, 
Types.findType("byte[]"));

 - u[] -> List<u>, given the library knows how to convert u -> v

The library's primary goal is to be generic.  Quite useful for rapid
prototyping, or generic conversion (when you don't quite know the input
or output type).

Since you guys weren't too eager on my initial proposal, I don't
expect that you are now - which is ok, really.

But the library may or may not contain thoughts from our initial
discussion, so I'd like to make sure that it is ok that I publish the
library at my discretion.

Thanks,
Ron




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





-- ===================================================== Kris Nuttycombe Associate Scientist Geospatial Data Services Group CIRES, National Geophysical Data Center/NOAA (303) 497-6337 [EMAIL PROTECTED] =====================================================



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to