Interface MergeFunction<V>


public interface MergeFunction<V>
  • Method Summary

    Modifier and Type
    Method
    Description
    merge​(V a, V b)
     
    default MergeFunction<V>
    Reverse a MergeFunction so that it can be applied with opposite ordering.
  • Method Details

    • merge

      V merge(V a, V b)
    • reverse

      default MergeFunction<V> reverse()
      Reverse a MergeFunction so that it can be applied with opposite ordering. This is useful for handling merge functions that are not commutative.
      Returns:
      A MergeFunction that merges the arguments in the reverse order.