Package org.yaml.snakeyaml.serializer
Class NumberAnchorGenerator
java.lang.Object
org.yaml.snakeyaml.serializer.NumberAnchorGenerator
- All Implemented Interfaces:
AnchorGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnextAnchor
(Node node) Create a custom anchor to the provided Node
-
Constructor Details
-
NumberAnchorGenerator
public NumberAnchorGenerator(int lastAnchorId)
-
-
Method Details
-
nextAnchor
Description copied from interface:AnchorGenerator
Create a custom anchor to the provided Node- Specified by:
nextAnchor
in interfaceAnchorGenerator
- Parameters:
node
- - the data to anchor- Returns:
- value to be used in the YAML document
-