Class MergerBiFunction<T>

  • Type Parameters:
    T - the value type
    All Implemented Interfaces:
    BiFunction<java.util.List<T>,​java.util.List<T>,​java.util.List<T>>

    public final class MergerBiFunction<T>
    extends java.lang.Object
    implements BiFunction<java.util.List<T>,​java.util.List<T>,​java.util.List<T>>
    A BiFunction that merges two Lists into a new list.
    • Field Summary

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

      Constructors 
      Constructor Description
      MergerBiFunction​(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> a, java.util.List<T> b)
      Calculate a value based on the input values.
      • 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

      • MergerBiFunction

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

      • apply

        public java.util.List<T> apply​(java.util.List<T> a,
                                       java.util.List<T> b)
        Description copied from interface: BiFunction
        Calculate a value based on the input values.
        Specified by:
        apply in interface BiFunction<java.util.List<T>,​java.util.List<T>,​java.util.List<T>>
        Parameters:
        a - the first value
        b - the second value
        Returns:
        the result value