Class RemoveNodesCommand

  • All Implemented Interfaces:
    PseudoCommand

    public class RemoveNodesCommand
    extends AbstractNodesCommand<java.util.Set<Node>>
    Command that removes a set of nodes from a way. The same can be done with ChangeNodesCommand, but this is more efficient. (Needed for the tool to disconnect nodes from ways.)
    • Constructor Detail

      • RemoveNodesCommand

        public RemoveNodesCommand​(Way way,
                                  java.util.Set<Node> rmNodes)
        Constructs a new RemoveNodesCommand.
        Parameters:
        way - The way to modify. Must not be null, and belong to a data set
        rmNodes - The set of nodes to remove
        Since:
        15013
      • RemoveNodesCommand

        public RemoveNodesCommand​(DataSet ds,
                                  Way way,
                                  java.util.Set<Node> rmNodes)
        Constructs a new RemoveNodesCommand.
        Parameters:
        ds - The target data set. Must not be null
        way - The way to modify. Must not be null, and belong to a data set
        rmNodes - The list of nodes to remove
        Since:
        15013