Hacker News new | ask | show | jobs
by mikepurvis 178 days ago
I'm not a Java person, but my understanding is that in Java everything is boxed anyway, so the implementation of the "generic" logic is always just dealing with a pointer-sized entity and it's a matter of whether the dereferenced object on the other end of that has the required fields/methods.
1 comments

> Java everything is boxed anyway

Not true, there's int and Integer.

Right but you can’t use them as type arguments to Java’s generics so they’re not really relevant in this context.