@Test public void length() { assertThat(CharBuffer.fromString("").length(), is(0)); assertThat(CharBuffer.fromString(".").length(), is(1)); assertThat(CharBuffer.fromString("..").length(), is(2)); assertThat(CharBuffer.fromString("...").length(), is(3)); }
int length() { return cs.length; }
CharBuffer { int length() { return cs.length; } }
CharBuffer { int length() { return cs.length; } private  CharBuffer(char[] cs); }
CharBuffer { int length() { return cs.length; } private  CharBuffer(char[] cs); @Override String toString(); }
CharBuffer { int length() { return cs.length; } private  CharBuffer(char[] cs); @Override String toString(); public char[] cs; public int position; }