Why does CharSequence not have String getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
Paulo Levi
i30817 at gmail.com
Fri Oct 17 19:49:11 UTC 2008
Get chars could be always implemented by a method already existing on
the interface (getChar(int i)) but more efficently.
Moreover this is the only missing piece to create read-only api's that
work on all kinds of charsequences, be it swing.text Content, String,
Stringbuffer, StringBuilder, CharBuffer etc.
I just can't understand why this did not happen.
More information about the core-libs-dev
mailing list