Package org.dmfs.jems2.iterable
Class Ascending<T extends Comparable<? super T>>
java.lang.Object
org.dmfs.jems2.iterable.DelegatingIterable<T>
org.dmfs.jems2.iterable.Ascending<T>
- All Implemented Interfaces:
Iterable<T>
An
Iterable decorator which returns the elements of the delegate in their natural ascending order.
Example
Ascending([8, 3, 2, 6, 2, 9]) -> [ 2, 2, 3, 6, 8, 9]
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.dmfs.jems2.iterable.DelegatingIterable
iteratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Ascending
-