RecordBuffer extends BufferBase { public Iterator<Record> iterator() { return new RecordBufferIterator(this); } RecordBuffer(RecordFactory recFactory, int maxRec);  RecordBuffer(ByteBuffer bb, RecordFactory recFactory, int num); X access(int idx, byte[] key, RecordMapper<X> mapper); Record get(int idx); Record getLow(); Record getHigh(); void add(Record record); void add(int idx, Record record); void set(int idx, Record record); X _access(int idx, byte[] key, RecordMapper<X> mapper); Record _get(int idx); int find(Record k); Iterator<Record> iterator(); Iterator<Record> iterator(Record min, Record max); Iterator<X> iterator(Record min, Record max, RecordMapper<X> mapper); Record findGet(Record k); boolean removeByKey(Record k); int find(Record rec, int fromIndex, int toIndex); @Override String toString(); RecordBuffer duplicate();  }
@Test public void recBufferIterate01() { RecordBuffer rb = make(5,5); same(rb.iterator(), 2,4,6,8,10); }
@Test public void recBufferIterate02() { RecordBuffer rb = make(3,5); Iterator<Record> iter = rb.iterator(); same(iter, 2, 4, 6); }
@Test public void recBufferIterate03() { RecordBuffer rb = make(3,5); Iterator<Record> iter = rb.iterator( intToRecord(4), null); same(iter, 4, 6); }
@Test public void recBufferIterate04() { RecordBuffer rb = make(3,5); Iterator<Record> iter = rb.iterator( intToRecord(3), null); same(iter, 4, 6); }
@Test public void recBufferIterate05() { RecordBuffer rb = make(3,5); Iterator<Record> iter = rb.iterator( intToRecord(1), null); same(iter, 2, 4, 6); }
@Test public void recBufferIterate06() { RecordBuffer rb = make(3,5); Iterator<Record> iter = rb.iterator( null, intToRecord(1)); same(iter); }
@Test public void recBufferIterate07() { RecordBuffer rb = make(3,5); Iterator<Record> iter = rb.iterator( null, intToRecord(2)); same(iter ); }
@Test public void recBufferIterate08() { RecordBuffer rb = make(3,5); Iterator<Record> iter = rb.iterator( null, intToRecord(3)); same(iter,2 ); }
@Test public void recBufferIterate09() { RecordBuffer rb = make(5,5); Iterator<Record> iter = rb.iterator( null, intToRecord(99)); same(iter, 2, 4, 6, 8, 10); }
@Test public void recBufferIterate10() { RecordBuffer rb = make(5,5); Iterator<Record> iter = rb.iterator( intToRecord(4), intToRecord(8)); same(iter, 4, 6 ); }
@Test public void recBufferIterate11() { RecordBuffer rb = make(5,5); Iterator<Record> iter = rb.iterator( intToRecord(3), intToRecord(9)); same(iter, 4, 6, 8 ); }