Top Description Constructors Methods
com.github.difflib.patch

public Class EqualDelta<T>

extends AbstractDelta<T>
Class Inheritance
Imports
java.util.List

This delta contains equal lines of data. Therefore nothing is to do in applyTo and restore.
Author
tobens

Constructor Summary

AccessConstructor and Description
public
EqualDelta(Chunk<T> source, Chunk<T> target)

Method Summary

Modifier and TypeMethod and Description
protected void
applyFuzzyToAt(List<T> target, int fuzz, int delta)

Overrides com.github.difflib.patch.AbstractDelta.applyFuzzyToAt.

Apply patch fuzzy.

protected void
protected void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public AbstractDelta<T>
withChunks(Chunk<T> original, Chunk<T> revised)

Implements abstract com.github.difflib.patch.AbstractDelta.withChunks.

Create a new delta of the actual instance with customized chunk data.

Inherited from com.github.difflib.patch.AbstractDelta:
equalsgetSourcegetTargetgetTypehashCodeverifyAndApplyToverifyChunkToFitTarget

Constructor Detail

EqualDeltaback to summary
public EqualDelta(Chunk<T> source, Chunk<T> target)

Method Detail

applyFuzzyToAtback to summary
protected void applyFuzzyToAt(List<T> target, int fuzz, int delta)

Overrides com.github.difflib.patch.AbstractDelta.applyFuzzyToAt.

Doc from com.github.difflib.patch.AbstractDelta.applyFuzzyToAt.

Apply patch fuzzy.

Annotations
@Override
applyToback to summary
protected void applyTo(List<T> target) throws PatchFailedException

Implements abstract com.github.difflib.patch.AbstractDelta.applyTo.

Annotations
@Override
restoreback to summary
protected void restore(List<T> target)

Implements abstract com.github.difflib.patch.AbstractDelta.restore.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
withChunksback to summary
public AbstractDelta<T> withChunks(Chunk<T> original, Chunk<T> revised)

Implements abstract com.github.difflib.patch.AbstractDelta.withChunks.

Doc from com.github.difflib.patch.AbstractDelta.withChunks.

Create a new delta of the actual instance with customized chunk data.

Annotations
@Override