| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public final ConflictOutput | CONFLICT_PRODUCES_EXCEPTION
Standard Patch behaviour to throw an exception for pathching conflicts. |
| public static final ConflictOutput | CONFLICT_PRODUCES_MERGE_CONFLICT
Git like merge conflict output. |
| private ConflictOutput | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public List | |
| public List | |
| public void | applyToExisting(List<T>
The list to apply the changes to. This list has to be modifiable,
otherwise exceptions may be thrown, depending on the used type of list. target)Applies the patch to the supplied list. |
| private static <T> Chunk | |
| private int | |
| private int | |
| private int | findPositionWithFuzzAndMoreDelta(Patch.
|
| public static <T> Patch | |
| public static <T> Patch | |
| public List | |
| public List | |
| public void | restoreToExisting(List<T>
The list to restore changes in. This list has to be modifiable,
otherwise exceptions may be thrown, depending on the used type of list. target)Restores all changes within the given list. |
| public String | |
| public Patch | withConflictOutput(ConflictOutput<T> conflictOutput)
Alter normal conflict output behaviour to e.g. inclide some conflict statements in the result, like git does it. |
| CONFLICT_PRODUCES_EXCEPTION | back to summary |
|---|---|
| public final ConflictOutput<T> CONFLICT_PRODUCES_EXCEPTION Standard Patch behaviour to throw an exception for pathching conflicts. | |
| CONFLICT_PRODUCES_MERGE_CONFLICT | back to summary |
|---|---|
| public static final ConflictOutput<String> CONFLICT_PRODUCES_MERGE_CONFLICT Git like merge conflict output. | |
| conflictOutput | back to summary |
|---|---|
| private ConflictOutput<T> conflictOutput | |
| deltas | back to summary |
|---|---|
| private final List<AbstractDelta<T>> deltas | |
| Patch | back to summary |
|---|---|
| public Patch() | |
| Patch | back to summary |
|---|---|
| public Patch(int estimatedPatchSize) | |
| addDelta | back to summary |
|---|---|
| public void addDelta(AbstractDelta<T> delta) Add the given delta to this patch
| |
| applyFuzzy | back to summary |
|---|---|
| public List | |
| applyTo | back to summary |
|---|---|
| public List Creates a new list, the patch is being applied to.
| |
| applyToExisting | back to summary |
|---|---|
| public void applyToExisting(List<T> target) throws PatchFailedException Applies the patch to the supplied list.
| |
| buildChunk | back to summary |
|---|---|
| private static <T> Chunk | |
| findPositionFuzzy | back to summary |
|---|---|
| private int findPositionFuzzy(Patch. | |
| findPositionWithFuzz | back to summary |
|---|---|
| private int findPositionWithFuzz(Patch. | |
| findPositionWithFuzzAndMoreDelta | back to summary |
|---|---|
| private int findPositionWithFuzzAndMoreDelta(Patch. | |
| generate | back to summary |
|---|---|
| public static <T> Patch | |
| generate | back to summary |
|---|---|
| public static <T> Patch | |
| getDeltas | back to summary |
|---|---|
| public List Get the list of computed deltas
| |
| restore | back to summary |
|---|---|
| public List Creates a new list, containing the restored state of the given list.
Opposite to | |
| restoreToExisting | back to summary |
|---|---|
| public void restoreToExisting(List<T> target) Restores all changes within the given list.
Opposite to
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| withConflictOutput | back to summary |
|---|---|
| public Patch Alter normal conflict output behaviour to e.g. inclide some conflict statements in the result, like git does it. | |
| Modifier and Type | Field and Description |
|---|---|
| public boolean | |
| public boolean | |
| public int | currentFuzz
// passing values from find to apply |
| public int | |
| public int | |
| public final int | |
| public final List |
| Access | Constructor and Description |
|---|---|
| private |
| afterOutRange | back to summary |
|---|---|
| public boolean afterOutRange | |
| beforeOutRange | back to summary |
|---|---|
| public boolean beforeOutRange | |
| currentFuzz | back to summary |
|---|---|
| public int currentFuzz // passing values from find to apply | |
| defaultPosition | back to summary |
|---|---|
| public int defaultPosition | |
| lastPatchEnd | back to summary |
|---|---|
| public int lastPatchEnd | |
| maxFuzz | back to summary |
|---|---|
| public final int maxFuzz | |
| result | back to summary |
|---|---|
| public final List<T> result | |
| PatchApplyingContext | back to summary |
|---|---|
| private PatchApplyingContext(List<T> result, int maxFuzz) | |