/** * {@inheritDoc} */ public final Iterator < E > iterator() { List < Iterator < E > > iterators = new ArrayList(); iterators.add(sourceIterator()); iterators.add(additionalIterator()); return new AggregateIterator(removeSet, iterators); }
/** * @param collRemove * collection of removed entries to check against * @param listIterators * collection of iterators */ public AggregateIterator(final Collection < ? > collRemove, final List < Iterator < T > > listIterators) { this.removeColl = collRemove; this.iterators = listIterators.iterator(); while (this.iterators.hasNext()) { this.currentIterator = getNextIterator(); while (this.currentIterator.hasNext()) { next = this.currentIterator.next(); if (!removeColl.contains(next)) { return; } } } next = null; }
/** * {@inheritDoc} */ public final Iterator < E > iterator() { List < Iterator < E > > iterators = new ArrayList(); iterators.add(sourceIterator()); iterators.add(additionalIterator()); return new AggregateIterator(removeSet, iterators); }
/** * @param collRemove * collection of removed entries to check against * @param listIterators * collection of iterators */ public AggregateIterator(final Collection < ? > collRemove, final List < Iterator < T > > listIterators) { this.removeColl = collRemove; this.iterators = listIterators.iterator(); while (this.iterators.hasNext()) { this.currentIterator = getNextIterator(); while (this.currentIterator.hasNext()) { next = this.currentIterator.next(); if (!removeColl.contains(next)) { return; } } } next = null; }
/** * {@inheritDoc} */ public final Iterator < E > iterator() { List < Iterator < E > > iterators = new ArrayList(); iterators.add(sourceIterator()); iterators.add(additionalIterator()); return new AggregateIterator(removeSet, iterators); }
/** * @param collRemove * collection of removed entries to check against * @param listIterators * collection of iterators */ public AggregateIterator(final Collection < ? > collRemove, final List < Iterator < T > > listIterators) { this.removeColl = collRemove; this.iterators = listIterators.iterator(); while (this.iterators.hasNext()) { this.currentIterator = getNextIterator(); while (this.currentIterator.hasNext()) { next = this.currentIterator.next(); if (!removeColl.contains(next)) { return; } } } next = null; }
/** * {@inheritDoc} */ public final Iterator < E > iterator() { List < Iterator < E > > iterators = new ArrayList(); iterators.add(sourceIterator()); iterators.add(additionalIterator()); return new AggregateIterator(removeSet, iterators); }
/** * @param collRemove * collection of removed entries to check against * @param listIterators * collection of iterators */ public AggregateIterator(final Collection < ? > collRemove, final List < Iterator < T > > listIterators) { this.removeColl = collRemove; this.iterators = listIterators.iterator(); while (this.iterators.hasNext()) { this.currentIterator = getNextIterator(); while (this.currentIterator.hasNext()) { next = this.currentIterator.next(); if (!removeColl.contains(next)) { return; } } } next = null; }