Class HistogramDiff<T>

  • All Implemented Interfaces:
    DiffAlgorithmI<T>

    public class HistogramDiff<T>
    extends java.lang.Object
    implements DiffAlgorithmI<T>
    HistorgramDiff using JGit - Library. This one is much more performant than the orginal Myers implementation.
    • Constructor Summary

      Constructors 
      Constructor Description
      HistogramDiff()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Change> computeDiff​(java.util.List<T> source, java.util.List<T> target, DiffAlgorithmListener progress)
      Computes the changeset to patch the source list to the target list.
      • Methods inherited from class java.lang.Object

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

      • HistogramDiff

        public HistogramDiff()
    • Method Detail

      • computeDiff

        public java.util.List<Change> computeDiff​(java.util.List<T> source,
                                                  java.util.List<T> target,
                                                  DiffAlgorithmListener progress)
        Description copied from interface: DiffAlgorithmI
        Computes the changeset to patch the source list to the target list.
        Specified by:
        computeDiff in interface DiffAlgorithmI<T>
        Parameters:
        source - source data
        target - target data
        progress - progress listener
        Returns: