Class Ascending<T extends java.lang.Comparable<? super T>>

  • All Implemented Interfaces:
    java.lang.Iterable<T>

    public final class Ascending<T extends java.lang.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 Summary

      Constructors 
      Constructor Description
      Ascending​(java.lang.Iterable<T> delegate)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • Ascending

        public Ascending​(java.lang.Iterable<T> delegate)