public class ReplaceInListRepairer extends Object
ReplaceInList commands in relation to local ListCommands and local
ReplaceInList commands in relation to remote ListCommands.| Constructor and Description |
|---|
ReplaceInListRepairer() |
| Modifier and Type | Method and Description |
|---|---|
ReplaceInList |
repairCommand(ReplaceInList toRepair,
AddToList repairAgainst)
Repairs a
ReplaceInList in relation to an AddToList command. |
ListCommand |
repairCommand(ReplaceInList toRepair,
RemoveFromList repairAgainst)
Repairs a
ReplaceInList in relation to an RemoveFromList command. |
Optional<ReplaceInList> |
repairLocalCommand(ReplaceInList toRepair,
ReplaceInList repairAgainst)
Repairs a local
ReplaceInList in relation to a remote ReplaceInList command. |
ReplaceInList |
repairRemoteCommand(ReplaceInList toRepair,
ReplaceInList repairAgainst)
Repairs a remote
ReplaceInList in relation to a local ReplaceInList command. |
public ReplaceInList repairCommand(ReplaceInList toRepair, AddToList repairAgainst)
ReplaceInList in relation to an AddToList command.toRepair - The command to repair.repairAgainst - The command to repair against.public ListCommand repairCommand(ReplaceInList toRepair, RemoveFromList repairAgainst)
ReplaceInList in relation to an RemoveFromList command.
Repairing a ReplaceInList command can result in an AddToList command in the case that the element
that should be replaced was removed. Therefore this methods return a ListCommand which is either a
ReplaceInList or AddToList.
toRepair - The command to repair.repairAgainst - The command to repair against.public Optional<ReplaceInList> repairLocalCommand(ReplaceInList toRepair, ReplaceInList repairAgainst)
ReplaceInList in relation to a remote ReplaceInList command.toRepair - The local command to repair.repairAgainst - The remote command to repair against.public ReplaceInList repairRemoteCommand(ReplaceInList toRepair, ReplaceInList repairAgainst)
ReplaceInList in relation to a local ReplaceInList command.toRepair - The remote command to repair.repairAgainst - The local command to repair against.Copyright © 2015 Saxonia Systems AG. All Rights Reserved.