Class SorterFunction<T>

  • All Implemented Interfaces:
    Function<java.util.List<T>,​java.util.List<T>>

    public final class SorterFunction<T>
    extends java.lang.Object
    implements Function<java.util.List<T>,​java.util.List<T>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Comparator<? super T> comparator  
    • Constructor Summary

      Constructors 
      Constructor Description
      SorterFunction​(java.util.Comparator<? super T> comparator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<T> apply​(java.util.List<T> t)
      Apply some calculation to the input value and return some other value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • comparator

        final java.util.Comparator<? super T> comparator
    • Constructor Detail

      • SorterFunction

        public SorterFunction​(java.util.Comparator<? super T> comparator)
    • Method Detail

      • apply

        public java.util.List<T> apply​(java.util.List<T> t)
        Description copied from interface: Function
        Apply some calculation to the input value and return some other value.
        Specified by:
        apply in interface Function<java.util.List<T>,​java.util.List<T>>
        Parameters:
        t - the input value
        Returns:
        the output value