Class ChangeNodesCommand

  • All Implemented Interfaces:
    PseudoCommand

    public class ChangeNodesCommand
    extends AbstractNodesCommand<java.util.List<Node>>
    Command that changes the nodes list of a way. The same can be done with ChangeCommand, but this is more efficient. (Needed for the duplicate node fixing tool of the validator, when processing large data sets.)
    • Constructor Detail

      • ChangeNodesCommand

        public ChangeNodesCommand​(Way way,
                                  java.util.List<Node> newNodes)
        Constructs a new ChangeNodesCommand.
        Parameters:
        way - The way to modify
        newNodes - The new list of nodes for the given way
      • ChangeNodesCommand

        public ChangeNodesCommand​(DataSet ds,
                                  Way way,
                                  java.util.List<Node> newNodes)
        Constructs a new ChangeNodesCommand.
        Parameters:
        ds - The target data set. Must not be null
        way - The way to modify
        newNodes - The new list of nodes for the given way
        Since:
        12726