@Test public void shouldThrowExceptionWhenCharAtCalledWithNoBuffer() { assertThrows(StringIndexOutOfBoundsException.class, () -> asciiSequenceView.charAt(0)); }
public char charAt(final int index) { if (index < 0 || index >= length) { throw new StringIndexOutOfBoundsException("index=" + index + " length=" + length); } return (char)buffer.getByte(offset + index); }
AsciiSequenceView implements CharSequence { public char charAt(final int index) { if (index < 0 || index >= length) { throw new StringIndexOutOfBoundsException("index=" + index + " length=" + length); } return (char)buffer.getByte(offset + index); } }
AsciiSequenceView implements CharSequence { public char charAt(final int index) { if (index < 0 || index >= length) { throw new StringIndexOutOfBoundsException("index=" + index + " length=" + length); } return (char)buffer.getByte(offset + index); } AsciiSequenceView();  AsciiSequenceView(final DirectBuffer buffer, final int offset, final int length); }
AsciiSequenceView implements CharSequence { public char charAt(final int index) { if (index < 0 || index >= length) { throw new StringIndexOutOfBoundsException("index=" + index + " length=" + length); } return (char)buffer.getByte(offset + index); } AsciiSequenceView();  AsciiSequenceView(final DirectBuffer buffer, final int offset, final int length); int length(); DirectBuffer buffer(); int offset(); char charAt(final int index); AsciiSequenceView subSequence(final int start, final int end); AsciiSequenceView wrap(final DirectBuffer buffer, final int offset, final int length); void reset(); int getBytes(final MutableDirectBuffer dstBuffer, final int dstOffset); String toString(); }
AsciiSequenceView implements CharSequence { public char charAt(final int index) { if (index < 0 || index >= length) { throw new StringIndexOutOfBoundsException("index=" + index + " length=" + length); } return (char)buffer.getByte(offset + index); } AsciiSequenceView();  AsciiSequenceView(final DirectBuffer buffer, final int offset, final int length); int length(); DirectBuffer buffer(); int offset(); char charAt(final int index); AsciiSequenceView subSequence(final int start, final int end); AsciiSequenceView wrap(final DirectBuffer buffer, final int offset, final int length); void reset(); int getBytes(final MutableDirectBuffer dstBuffer, final int dstOffset); String toString();  }