RFR: JDK-8021560,(str) String constructors that take ByteBuffer
Alan.Bateman at oracle.com
Fri Feb 16 14:14:44 UTC 2018
On 15/02/2018 21:55, Stuart Marks wrote:
> I'd also suggest adding a CharBuffer constructor:
> public String(CharBuffer cbuf)
> This would be semantically equivalent to
> public String(char value, int offset, int count)
> except using the chars from the CharBuffer between the buffer's
> position and its limit.
CharBuffer::toString already does this so adding this constructor may
not be as useful as it initially looks.
More information about the core-libs-dev