Class NumberAnchorGenerator
- java.lang.Object
-
- org.snakeyaml.engine.v2.serializer.NumberAnchorGenerator
-
- All Implemented Interfaces:
AnchorGenerator
public class NumberAnchorGenerator extends java.lang.Object implements AnchorGenerator
Simple generate of the format id + number
-
-
Field Summary
Fields Modifier and Type Field Description private int
lastAnchorId
-
Constructor Summary
Constructors Constructor Description NumberAnchorGenerator(int lastAnchorId)
Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Anchor
nextAnchor(Node node)
Create value increasing the number
-
-
-
Method Detail
-
nextAnchor
public Anchor nextAnchor(Node node)
Create value increasing the number- Specified by:
nextAnchor
in interfaceAnchorGenerator
- Parameters:
node
- - ignored- Returns:
- value with format 'id001'
-
-