T - The type of the iterated elements.public final class Distinct<T>
extends java.lang.Object
implements java.lang.Iterable<T>
Iterable decorator that removes any duplicates from another Iterable, keeping only the first
occurrence of each iterated value.| Constructor and Description |
|---|
Distinct(java.lang.Iterable<T> delegate)
Creates an
Iterable which iterates each value of the given Iterable exactly once. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<T> |
iterator() |
public Distinct(java.lang.Iterable<T> delegate)
Iterable which iterates each value of the given Iterable exactly once.delegate - Another Iterable.