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>

public final class Ascending<T extends Comparable<? super T>> extends DelegatingIterable<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 Details

    • Ascending

      public Ascending(Iterable<T> delegate)