public List<T> getMore() {

        assert m_itemIndex < m_items.size();
        List<T> result = new ArrayList<T>();
        int totalSize = 0;
        while ((m_itemIndex < m_items.size()) && (totalSize < m_batchSize)) {
            T item = m_items.get(m_itemIndex);
            result.add(item);
            m_itemIndex += 1;
            totalSize += item.getSize();
        }
        return result;
    }
public List < T > getMore ( ) { assert m_itemIndex < m_items . size ( ) ; List < T > result = new ArrayList < T > ( ) ; int totalSize = 0 ; while ( ( m_itemIndex < m_items . size ( ) ) && ( totalSize < m_batchSize ) ) { T item = m_items . get ( m_itemIndex ) ; result . add ( item ) ; m_itemIndex += 1 ; totalSize += item . getSize ( ) ; } return result ; }
Gets the next batch of items.<p>

This will fail if there are no more items.

@return the next batch of items