rest/src/main/java/com/abiquo/apiclient/domain/PageIterator.java
public static <T extends SingleResourceTransportDto, W extends WrapperDto<T>> Iterable<T> flatten(
        final RestClient api, final W dto)
    {
        return new AdvancingIterable<T, W>(api, dto);
    }
/**
     * Creates an iterator capable of advancing over the elements of a paginated collection, and
     * lazily fetch new pages as they are needed.
     * 
     * @param api The rest client used to fetch new pages when needed.
     * @param dto The collection to iterate.
     * @return An iterator capable of advancing between pages.
     */
Creates an iterator capable of advancing over the elements of a paginated collection, and
lazily fetch new pages as they are needed.

@param api The rest client used to fetch new pages when needed.
@param dto The collection to iterate.
@return An iterator capable of advancing between pages.
Creates an iterator capable of advancing over the elements of a paginated collection and lazily fetch new pages as they are needed . @param api The rest client used to fetch new pages when needed . @param dto The collection to iterate . @return An iterator capable of advancing between pages .
public static <T extends SingleResourceTransportDto, W extends WrapperDto<T>> Iterable<T> flatten(
        final RestClient api, final W dto)
    {
        return new AdvancingIterable<T, W>(api, dto);
    }
public static < T extends SingleResourceTransportDto , W extends WrapperDto < T > > Iterable < T > flatten ( final RestClient api , final W dto ) { return new AdvancingIterable < T , W > ( api , dto ) ; }
Creates an iterator capable of advancing over the elements of a paginated collection, and
 lazily fetch new pages as they are needed.
Creates an iterator capable of advancing over the elements of a paginated collection and lazily fetch new pages as they are needed .