Class SpecVersion

java.lang.Object
org.snakeyaml.engine.v2.common.SpecVersion
All Implemented Interfaces:
Serializable

public class SpecVersion extends Object implements Serializable
YAML Version indicator
See Also:
  • Field Details

    • major

      private final int major
      keep major
    • minor

      private final int minor
      keep minor
  • Constructor Details

    • SpecVersion

      public SpecVersion(int major, int minor)
      Create
      Parameters:
      major - - major part ov version, must be 1
      minor - - minor part of version, may be 0 or 1
  • Method Details

    • getMajor

      public int getMajor()
      getter
      Returns:
      1
    • getMinor

      public int getMinor()
      getter
      Returns:
      0 or 1
    • getRepresentation

      public String getRepresentation()
      create readable text
      Returns:
      text
    • toString

      public String toString()
      Overrides:
      toString in class Object