Class MaxValueMerger<V extends java.lang.Comparable<V>>

    • Constructor Summary

      Constructors 
      Constructor Description
      MaxValueMerger​(V onEmpty)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V merge​(java.util.List<V> concValues)
      Merges the concurrent values of the (possibly empty) list concValues into a single value
      • Methods inherited from class java.lang.Object

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

      • MaxValueMerger

        public MaxValueMerger​(V onEmpty)
    • Method Detail

      • merge

        public V merge​(java.util.List<V> concValues)
        Description copied from interface: MergeRegisterKey.ValueMerger
        Merges the concurrent values of the (possibly empty) list concValues into a single value
        Specified by:
        merge in interface MergeRegisterKey.ValueMerger<V extends java.lang.Comparable<V>>
        Parameters:
        concValues - the values concurrently written to the register by different replicas
        Returns:
        the merged result