@Override
    public Iterator<Object[]> getDataByFilter(DataProviderFilter dataFilter) {
        logger.entering(new Object[] { resource, dataFilter });
        List<Object[]> allObjs = getDataListByFilter(dataFilter);
        return allObjs.iterator();
    }
@ Override public Iterator < Object [ ] > getDataByFilter ( DataProviderFilter dataFilter ) { logger . entering ( new Object [ ] { resource , dataFilter } ) ; List < Object [ ] > allObjs = getDataListByFilter ( dataFilter ) ; return allObjs . iterator ( ) ; }
Generates an object array in iterator as TestNG DataProvider from the XML data filtered per {@code dataFilter}.

@param dataFilter
an implementation class of {@link DataProviderFilter}
@return An iterator over a collection of Object Array to be used with TestNG DataProvider