@Test public void nextIsDigit() { CharBuffer buffer = CharBuffer.fromString("c1"); assertFalse(buffer.nextIsDigit()); assertThat(buffer.get(), is('c')); assertTrue(buffer.nextIsDigit()); assertThat(buffer.get(), is('1')); assertFalse(buffer.nextIsDigit()); }
boolean nextIsDigit() { return hasRemaining() && isDigit(next()); }
CharBuffer { boolean nextIsDigit() { return hasRemaining() && isDigit(next()); } }
CharBuffer { boolean nextIsDigit() { return hasRemaining() && isDigit(next()); } private  CharBuffer(char[] cs); }
CharBuffer { boolean nextIsDigit() { return hasRemaining() && isDigit(next()); } private  CharBuffer(char[] cs); @Override String toString(); }
CharBuffer { boolean nextIsDigit() { return hasRemaining() && isDigit(next()); } private  CharBuffer(char[] cs); @Override String toString(); public char[] cs; public int position; }