T
- The type of the compared elements in the 'lines'.public final class InsertDelta<T> extends AbstractDelta<T>
Constructor and Description |
---|
InsertDelta(Chunk<T> original,
Chunk<T> revised)
Creates an insert delta with the two given chunks.
|
Modifier and Type | Method and Description |
---|---|
void |
applyTo(List<T> target) |
void |
restore(List<T> target) |
String |
toString() |
AbstractDelta<T> |
withChunks(Chunk<T> original,
Chunk<T> revised)
Create a new delta of the actual instance with customized chunk data.
|
equals, getSource, getTarget, getType, hashCode, verifyChunk
public void applyTo(List<T> target) throws PatchFailedException
applyTo
in class AbstractDelta<T>
PatchFailedException
public void restore(List<T> target)
restore
in class AbstractDelta<T>
public AbstractDelta<T> withChunks(Chunk<T> original, Chunk<T> revised)
AbstractDelta
withChunks
in class AbstractDelta<T>
Copyright © 2009–2020 java-diff-utils. All rights reserved.