Velocity Reviews

Velocity Reviews (
-   Java (
-   -   Re: Dealing with higher order operations coupled with primitives (

Roedy Green 06-22-2012 07:33 AM

Re: Dealing with higher order operations coupled with primitives
On Thu, 21 Jun 2012 22:08:37 -0500, "Aaron W. Hsu"
<> wrote, quoted or indirectly quoted someone who
said :

>To give a simplified example of what I am dealing with, I want to have an
>class that stores data in arrays of primitives (since I do not want to
>incur the boxing overhead of Objects),

Elements in arrays of primitives must all be of the same type. If you
want to mix, you need arrays of Objects.

You can of course have subclasses of Objects each with a different
type of primitive array.
Roedy Green Canadian Mind Products
If you look in a computer programmer's freezer you will find all
kinds of containers, but none of them labeled. They do the same thing
creating files without labeling the encoding. You are just supposed to
know. Ditto with the MIME type, the separator and comment delimiters and
column names in CSV files. Ditto with the endian convention. Imagine how
much more civilised life would have been if Martha Stewart were the first

All times are GMT. The time now is 10:58 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.