Top Description Constructors Methods
com.github.difflib.patch

public final Class DeleteDelta<T>

extends AbstractDelta<T>
Class Inheritance
Type Parameters
<T>
The type of the compared elements in the 'lines'.
Imports
java.util.List

Describes the delete-delta between original and revised texts.
Author
Dmitry Naumenko

Constructor Summary

AccessConstructor and Description
public
DeleteDelta(Chunk<T>
The original chunk. Must not be null.
original
,
Chunk<T>
The original chunk. Must not be null.
revised
)

Creates a change delta with the two given chunks.

Method Summary

Modifier and TypeMethod and Description
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:
applyFuzzyToAtequalsgetSourcegetTargetgetTypehashCodeverifyAndApplyToverifyChunkToFitTarget

Constructor Detail

DeleteDeltaback to summary
public DeleteDelta(Chunk<T> original, Chunk<T> revised)

Creates a change delta with the two given chunks.

Parameters
original:Chunk<T>

The original chunk. Must not be null.

revised:Chunk<T>

The original chunk. Must not be null.

Method Detail

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