public Iterator < QueryParameters > iterator ( ) { final QueryParametersLazyList source = this ; return new Iterator < QueryParameters > ( ) { private LazyCacheIterator < QueryParameters > lazyCacheIterator = source . getLazyCacheIterator ( - 1 ) ; public boolean hasNext ( ) { return lazyCacheIterator . hasNext ( ) ; } public QueryParameters next ( ) { return lazyCacheIterator . getNext ( ) ; } public void remove ( ) { source . remove ( currentIndex ) ; } } ; }
Returns iterator of this lazy query output list implementation . First element returned - is header . Actual values are returned only starting from second element .