@Test public void testSize() { Assert.assertEquals(0, buffer.size()); for (int i = 0; i < 2 * CAPACITY; i++) { buffer.add(0); Assert.assertEquals( i < CAPACITY ? i + 1 : CAPACITY, buffer.size()); } }
@Override public int size() { return (int) (iEnd - iStart); }
TailBuffer implements ITailBuffer<S> { @Override public int size() { return (int) (iEnd - iStart); } }
TailBuffer implements ITailBuffer<S> { @Override public int size() { return (int) (iEnd - iStart); } TailBuffer(final int capacity_);  TailBuffer(); }
TailBuffer implements ITailBuffer<S> { @Override public int size() { return (int) (iEnd - iStart); } 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 int size() { return (int) (iEnd - iStart); } 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; }