Sounds like a potential application for Java generics? Generics would
also help reduce the number of times casting is required and improve the
readability of code.
Downsides are the amount of work, and possible efficiency concerns. I'm
no expert on the latter.
Sean Luke wrote:
> On Sep 21, 2009, at 7:01 PM, Claes Gyllenswärd wrote:
>> If I recall correctly, floats were chosen because the speed penalty
>> one gets when using doubles?
> Memory mostly, but also the speed penalty involved in generating random
> double values using Mersenne Twister. It's almost inconsequential