Class EqualDelta<T>

  • All Implemented Interfaces:
    java.io.Serializable

    public class EqualDelta<T>
    extends AbstractDelta<T>
    This delta contains equal lines of data. Therefore nothing is to do in applyTo and restore.
    See Also:
    Serialized Form
    • Constructor Detail

      • EqualDelta

        public EqualDelta​(Chunk<T> source,
                          Chunk<T> target)
    • Method Detail

      • restore

        protected void restore​(java.util.List<T> target)
        Specified by:
        restore in class AbstractDelta<T>
      • applyFuzzyToAt

        protected void applyFuzzyToAt​(java.util.List<T> target,
                                      int fuzz,
                                      int delta)
        Apply patch fuzzy.
        Overrides:
        applyFuzzyToAt in class AbstractDelta<T>
        Parameters:
        target - the list this patch will be applied to
        fuzz - the number of elements to ignore before/after the patched elements
        delta - the position this patch will be applied to. ignores source.getPosition()
        See Also:
        Description of Fuzzy Patch for more information.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object