Package org.snakeyaml.engine.v2.common
Class SpecVersion
- java.lang.Object
-
- org.snakeyaml.engine.v2.common.SpecVersion
-
- All Implemented Interfaces:
java.io.Serializable
public class SpecVersion extends java.lang.Object implements java.io.Serializable
YAML Version indicator- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpecVersion(int major, int minor)
Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMajor()
getterint
getMinor()
getterjava.lang.String
getRepresentation()
create readable textjava.lang.String
toString()
-
-
-
Method Detail
-
getMajor
public int getMajor()
getter- Returns:
- 1
-
getMinor
public int getMinor()
getter- Returns:
- 0 or 1
-
getRepresentation
public java.lang.String getRepresentation()
create readable text- Returns:
- text
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-