@Test public void testPeek() { CodeBuffer code = new CodeBuffer("pa", defaulConfiguration); assertThat((char) code.peek(), is('p')); assertThat((char) code.peek(), is('p')); code.pop(); assertThat((char) code.peek(), is('a')); code.pop(); assertThat(code.peek(), is( -1)); }
public final int peek() { return intAt(0); }
CodeBuffer implements CharSequence { public final int peek() { return intAt(0); } }
CodeBuffer implements CharSequence { public final int peek() { return intAt(0); } protected  CodeBuffer(String code, CodeReaderConfiguration configuration); protected  CodeBuffer(Reader initialCodeReader, CodeReaderConfiguration configuration); }
CodeBuffer implements CharSequence { public final int peek() { return intAt(0); } protected  CodeBuffer(String code, CodeReaderConfiguration configuration); protected  CodeBuffer(Reader initialCodeReader, CodeReaderConfiguration configuration); final int pop(); final int lastChar(); final int peek(); final int getLinePosition(); final Cursor getCursor(); final int getColumnPosition(); final CodeBuffer setColumnPosition(int cp); final void setLinePosition(int lp); final void startRecording(); final CharSequence stopRecording(); @Override final char charAt(int index); @Override final int length(); @Override final CharSequence subSequence(int start, int end); @Override final String toString(); }
CodeBuffer implements CharSequence { public final int peek() { return intAt(0); } protected  CodeBuffer(String code, CodeReaderConfiguration configuration); protected  CodeBuffer(Reader initialCodeReader, CodeReaderConfiguration configuration); final int pop(); final int lastChar(); final int peek(); final int getLinePosition(); final Cursor getCursor(); final int getColumnPosition(); final CodeBuffer setColumnPosition(int cp); final void setLinePosition(int lp); final void startRecording(); final CharSequence stopRecording(); @Override final char charAt(int index); @Override final int length(); @Override final CharSequence subSequence(int start, int end); @Override final String toString();  }