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, verifyChunkpublic void applyTo(List<T> target) throws PatchFailedException
applyTo in class AbstractDelta<T>PatchFailedExceptionpublic void restore(List<T> target)
restore in class AbstractDelta<T>public AbstractDelta<T> withChunks(Chunk<T> original, Chunk<T> revised)
AbstractDeltawithChunks in class AbstractDelta<T>Copyright © 2009–2020 java-diff-utils. All rights reserved.