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.SerializableYAML 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 intgetMajor()getterintgetMinor()getterjava.lang.StringgetRepresentation()create readable textjava.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-