@Test(expected = IndexOutOfBoundsException.class) public void testSymbolAt_Underflow() { fill(); buffer.symbolAt(TEXT_LENGTH - CAPACITY - 1); }
@SuppressWarnings("unchecked") @Override public S symbolAt(final long iPosition_) { Verify.inRange(iPosition_, iStart, iEnd, PARM_iPosition_); return (S) buffer[(int) (iPosition_ % buffer.length)]; }
TailBuffer implements ITailBuffer<S> { @SuppressWarnings("unchecked") @Override public S symbolAt(final long iPosition_) { Verify.inRange(iPosition_, iStart, iEnd, PARM_iPosition_); return (S) buffer[(int) (iPosition_ % buffer.length)]; } }
TailBuffer implements ITailBuffer<S> { @SuppressWarnings("unchecked") @Override public S symbolAt(final long iPosition_) { Verify.inRange(iPosition_, iStart, iEnd, PARM_iPosition_); return (S) buffer[(int) (iPosition_ % buffer.length)]; } TailBuffer(final int capacity_);  TailBuffer(); }
TailBuffer implements ITailBuffer<S> { @SuppressWarnings("unchecked") @Override public S symbolAt(final long iPosition_) { Verify.inRange(iPosition_, iStart, iEnd, PARM_iPosition_); return (S) buffer[(int) (iPosition_ % buffer.length)]; } TailBuffer(final int capacity_);  TailBuffer(); @Override void add(final S symbol_); @Override int capacity(); @Override void clear(); @Override long end(); @Override boolean isEmpty(); @Override boolean isFull(); @Override S remove(); @Override int size(); @Override long start(); @SuppressWarnings("unchecked") @Override S symbolAt(final long iPosition_); @Override String toString(); }
TailBuffer implements ITailBuffer<S> { @SuppressWarnings("unchecked") @Override public S symbolAt(final long iPosition_) { Verify.inRange(iPosition_, iStart, iEnd, PARM_iPosition_); return (S) buffer[(int) (iPosition_ % buffer.length)]; } TailBuffer(final int capacity_);  TailBuffer(); @Override void add(final S symbol_); @Override int capacity(); @Override void clear(); @Override long end(); @Override boolean isEmpty(); @Override boolean isFull(); @Override S remove(); @Override int size(); @Override long start(); @SuppressWarnings("unchecked") @Override S symbolAt(final long iPosition_); @Override String toString(); static final int DEFAULT_CAPACITY; }