@Test public void testClear() { fill(); Assert.assertEquals(CAPACITY, buffer.size()); buffer.clear(); Assert.assertEquals(CAPACITY, buffer.capacity()); Assert.assertEquals(0, buffer.start()); Assert.assertEquals(0, buffer.end()); Assert.assertEquals(0, buffer.size()); Assert.assertTrue(buffer.isEmpty()); Assert.assertFalse(buffer.isFull()); }
@Override public void clear() { iStart = 0; iEnd = 0; }
TailBuffer implements ITailBuffer<S> { @Override public void clear() { iStart = 0; iEnd = 0; } }
TailBuffer implements ITailBuffer<S> { @Override public void clear() { iStart = 0; iEnd = 0; } TailBuffer(final int capacity_);  TailBuffer(); }
TailBuffer implements ITailBuffer<S> { @Override public void clear() { iStart = 0; iEnd = 0; } 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> { @Override public void clear() { iStart = 0; iEnd = 0; } 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; }