Re: java.lang.String API suggestion : make String return read-only CharBuffer

2013-04-10 Thread Martin Buchholz
It's a reasonable suggestion, although the natural signature is public CharBuffer asReadOnlyBuffer() but where do you stop? What about public List asReadOnlyList() On Thu, Apr 4, 2013 at 7:40 PM, Eugene Chung(정의근) wrote: > Hello, Java SE 8 EG. > > > I'm a member of TmaxSoft, which is making

java.lang.String API suggestion : make String return read-only CharBuffer

2013-04-04 Thread 정의근
Hello, Java SE 8 EG. I'm a member of TmaxSoft, which is making the JEUS web application server. And the implementor of a Servlet container. I am writing to you that I'd like to suggest a new method to java.lang.String like below: /** * Returns a read-only char buffer that shares this string's