/** * Count the number of elements * * @return the number of elements provided */ public int size() { load(); return elements.size(); }
/** * Iterate over the provided elements. * * @param first * @param count * * @return iterator over the elements */ public Iterator<M> iterator(int first, int count) { load(); return elements.subList(first, first + count).iterator(); }