What methods should go into a java.util.Objects class in JDK 7?
Andrew John Hughes
gnu_andrew at member.fsf.org
Thu Sep 10 06:12:10 PDT 2009
2009/9/10 Ulf Zibis <Ulf.Zibis at gmx.de>:
> Am 10.09.2009 01:54, Stephen Colebourne schrieb:
>> There is also a case for methods to convert arrays of wrappers to
>> arrays of primitives.
> - I guess, you mean also vice versa
> - Maybe would become superfluous, if HotSpot internally would compile to
> primitive arrays. (just a raw thought)
Except that what's being proposed here results in a spec. change and
will be available regardless of VM. We shouldn't go on relying on
features of certain VMs.
There are other VMs than HotSpot you know! :)
> 19) re-usability of java.nio.Buffer (saves multiple instantiation):
> - X-Buffer#clear(x buf); clears all pointers
> - X-Buffer#reset(x buf); only resets pos to mark (maybe limit to array
> size), allows to process different data in same/similar/synchronous manner.
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
Support Free Java!
Contribute to GNU Classpath and the OpenJDK
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
More information about the core-libs-dev