static final class Iterators.Unique<T> extends Iterators.Filter<T>
Constructor and Description |
---|
Unique(java.util.Iterator<? extends T> core) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
matches(T value)
Return true to retain the value.
|
hasNext, next
remove
private java.util.Set<T> values
public Unique(java.util.Iterator<? extends T> core)
protected boolean matches(T value)
Iterators.Filter
matches
in class Iterators.Filter<T>