Class NumberAnchorGenerator

java.lang.Object
org.yaml.snakeyaml.serializer.NumberAnchorGenerator
All Implemented Interfaces:
AnchorGenerator

public class NumberAnchorGenerator extends Object implements AnchorGenerator
  • Constructor Details

    • NumberAnchorGenerator

      public NumberAnchorGenerator(int lastAnchorId)
  • Method Details

    • nextAnchor

      public String nextAnchor(Node node)
      Description copied from interface: AnchorGenerator
      Create a custom anchor to the provided Node
      Specified by:
      nextAnchor in interface AnchorGenerator
      Parameters:
      node - - the data to anchor
      Returns:
      value to be used in the YAML document