public abstract class AbstractDelta<T> extends Object implements Serializable
| Constructor and Description | 
|---|
AbstractDelta(DeltaType type,
             Chunk<T> source,
             Chunk<T> target)  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract void | 
applyTo(List<T> target)  | 
boolean | 
equals(Object obj)  | 
Chunk<T> | 
getSource()  | 
Chunk<T> | 
getTarget()  | 
DeltaType | 
getType()  | 
int | 
hashCode()  | 
abstract void | 
restore(List<T> target)  | 
protected void | 
verifyChunk(List<T> target)
Verify the chunk of this delta, to fit the target. 
 | 
abstract AbstractDelta<T> | 
withChunks(Chunk<T> original,
          Chunk<T> revised)
Create a new delta of the actual instance with customized chunk data. 
 | 
public DeltaType getType()
protected void verifyChunk(List<T> target) throws PatchFailedException
target - PatchFailedExceptionpublic abstract void applyTo(List<T> target) throws PatchFailedException
PatchFailedExceptionpublic abstract AbstractDelta<T> withChunks(Chunk<T> original, Chunk<T> revised)
Copyright © 2009–2020 java-diff-utils. All rights reserved.