public class ListCommandIndexRepairer extends Object
ListCommands.| Constructor and Description |
|---|
ListCommandIndexRepairer(AddToListRepairer addToListRepairer,
RemoveFromListRepairer removeFromListRepairer,
ReplaceInListRepairer replaceInListRepairer)
Initializes an instance with all its dependencies.
|
| Modifier and Type | Method and Description |
|---|---|
List<? extends ListCommand> |
repairCommands(Queue<ListCommand> localCommands,
ListCommand remoteCommand)
Repairs the indices of local and remote
ListCommands. |
public ListCommandIndexRepairer(AddToListRepairer addToListRepairer, RemoveFromListRepairer removeFromListRepairer, ReplaceInListRepairer replaceInListRepairer)
addToListRepairer - Used to repair AddToList commands.removeFromListRepairer - Used to repair RemoveFromList commands.replaceInListRepairer - Used to repair ReplaceInList commands.public List<? extends ListCommand> repairCommands(Queue<ListCommand> localCommands, ListCommand remoteCommand)
ListCommands.remoteCommand - The remote command to repair.localCommands - The local commands that should be repaired. After returning from this method, the queue will contain
only the repaired commands.Copyright © 2016 Saxonia Systems AG. All Rights Reserved.