E - The type of element common to both source and set.public class DifferencingIterator<E>
extends com.google.common.collect.AbstractIterator<E>
Iterator that calculates two differences between a
Set A and a source Iterator B. The differences are (A - (A ∩ B)) and
(B - (A ∩ B)). The ordinary output of this iterator is (B - (A ∩ B)), and
after exhaustion, sets containing (A - (A ∩ B)) and (A ∩ B) are available.| Constructor and Description |
|---|
DifferencingIterator(Set<? extends E> original,
Iterator<E> source)
Ordinary constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<E> |
common()
This method will return null until the source iterator is exhausted.
|
protected E |
computeNext() |
Set<? extends E> |
notCommon()
This method will return null until the source iterator is exhausted.
|
protected E computeNext()
computeNext in class com.google.common.collect.AbstractIterator<E>public Set<E> common()
Copyright © 2013–2014 DuraSpace, Inc.. All rights reserved.