public class WayNodesConflictResolverCommand extends ConflictResolveCommand
Way
s.Command.OldNodeState
Modifier and Type | Field and Description |
---|---|
private Conflict<Way> |
conflict
the conflict to resolve
|
private List<Node> |
mergedNodeList
the list of merged nodes.
|
Constructor and Description |
---|
WayNodesConflictResolverCommand(Conflict<? extends OsmPrimitive> conflict,
List<Node> mergedNodeList) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
executeCommand()
Executes the command on the dataset.
|
void |
fillModifiedData(Collection<OsmPrimitive> modified,
Collection<OsmPrimitive> deleted,
Collection<OsmPrimitive> added)
Fill in the changed data this command operates on.
|
Icon |
getDescriptionIcon()
Provides a descriptive icon of this command.
|
String |
getDescriptionText()
Provides a description text representing this command.
|
int |
hashCode() |
reconstituteConflicts, rememberConflict, undoCommand
checkAndConfirmOutlyingOperation, getLayer, getOrig, getParticipatingPrimitives, invalidBecauselayerRemoved
getChildren
private final List<Node> mergedNodeList
public WayNodesConflictResolverCommand(Conflict<? extends OsmPrimitive> conflict, List<Node> mergedNodeList)
conflict
- the conflict data setmergedNodeList
- the list of merged nodespublic String getDescriptionText()
PseudoCommand
getDescriptionText
in class PseudoCommand
public Icon getDescriptionIcon()
PseudoCommand
getDescriptionIcon
in class PseudoCommand
public boolean executeCommand()
Command
executeCommand
in class Command
public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, Collection<OsmPrimitive> added)
Command
fillModifiedData
in class Command
modified
- The modified primitivesdeleted
- The deleted primitivesadded
- The added primitivespublic int hashCode()
hashCode
in class ConflictResolveCommand
public boolean equals(Object obj)
equals
in class ConflictResolveCommand