Class RelabelNodes<L extends Label>

java.lang.Object
org.variantsync.diffdetective.variation.diff.transform.RelabelNodes<L>
All Implemented Interfaces:
VariationDiffTransformer<L>

public class RelabelNodes<L extends Label> extends Object implements VariationDiffTransformer<L>
Transformer that changes the label of each node using a relable function.
Author:
Paul Bittner
  • Field Details

  • Constructor Details

    • RelabelNodes

      public RelabelNodes(Function<DiffNode<L>,L> newLabelOfNode)
      Creates a new transformation that relables each node with the given function.
      Parameters:
      newLabelOfNode - This function is invoked once for each DiffNode in the transformed VariationDiff. The returned String is set as the node's new label.
    • RelabelNodes

      public RelabelNodes(L label)
      Creates a new transformation that sets the label of each node to the given string.
      Parameters:
      label - The new label for each node in a VariationDiff.
  • Method Details