Add getChars to CharSequence

Martin Buchholz martinrb at google.com
Thu Apr 11 20:56:33 UTC 2013


On Thu, Apr 11, 2013 at 1:47 PM, Alan Bateman <Alan.Bateman at oracle.com>wrote:

> On 11/04/2013 18:14, Martin Buchholz wrote:
>
>>
>> :
>>
>> I thought about this a bit.  getChars should be consistent with charAt,
>> which does not move position and is relative to position.
>>
> This is probably right although I think we'll need the spec overridden in
> CharBuffer to make this clear.


Agreed.


> You might be thinking of providing an implementation there anyway to avoid
> checking the position at each char.


Right.  We probably want to override in almost every performance-sensitive
concrete implementation.



More information about the core-libs-dev mailing list