public abstract class AbstractDelta<T>
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
AbstractDelta(DeltaType type,
Chunk<T> source,
Chunk<T> target) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
applyTo(java.util.List<T> target) |
boolean |
equals(java.lang.Object obj) |
Chunk<T> |
getSource() |
Chunk<T> |
getTarget() |
DeltaType |
getType() |
int |
hashCode() |
protected abstract void |
restore(java.util.List<T> target) |
protected VerifyChunk |
verifyAntApplyTo(java.util.List<T> target) |
protected VerifyChunk |
verifyChunkToFitTarget(java.util.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 VerifyChunk verifyChunkToFitTarget(java.util.List<T> target) throws PatchFailedException
target - PatchFailedExceptionprotected VerifyChunk verifyAntApplyTo(java.util.List<T> target) throws PatchFailedException
PatchFailedExceptionprotected abstract void applyTo(java.util.List<T> target) throws PatchFailedException
PatchFailedExceptionprotected abstract void restore(java.util.List<T> target)
public abstract AbstractDelta<T> withChunks(Chunk<T> original, Chunk<T> revised)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object