[DISCUSSION] Views of immutable objects.
Paulo Levi
i30817 at gmail.com
Sat Jul 28 17:47:36 UTC 2007
What about adding a method to String complementing the call toCharArray(),
only it takes 3 arguments:
An char array, a position and a length, that inside uses System.arrayCopy.
This would create the possibility to eliminate news when we just want to
copy Strings, and still preserve immutability
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20070728/88e1c654/attachment.html>
More information about the core-libs-dev
mailing list