public final class Sorted<T>
extends java.lang.Object
implements java.lang.Iterable<T>
Iterable decorator which returns the elements of the delegate in a sorted order, determined by a given Comparator.| Constructor and Description |
|---|
Sorted(java.util.Comparator<T> comparator,
java.lang.Iterable<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<T> |
iterator() |