@Override public synchronized ConvertedType next() { while (!conversionQueue.hasNext() && inputIterator.hasNext()) { // fill conversion queue with converted objects from the next input final InputType input = inputIterator.next(); final Iterator<ConvertedType> conversions = converter.convert(input); lastInput = input; conversionQueue = conversions; } final ConvertedType retVal = conversionQueue.next(); if (!conversionQueue.hasNext() && (conversionCallback != null)) { // if the queue is empty, then notify that the last input had been // converted and iterated on notifyIterationComplete(); } return retVal; }
Math.max(maxSubstrategyResToSampleSetRes, substrategyResToSampleSetRes); return new IteratorWrapper<>( pyramidLevels.iterator(), new MosaicPerPyramidLevelBuilder(