Package com.io7m.coffeepick.runtime.parser.spi

# Interface FormatVersionType

All Superinterfaces:
  `java.lang.Comparable<FormatVersionType>`

All Known Implementing Classes:
  `FormatVersion`

    @ProviderType
    @Immutable
    public interface FormatVersionType
    extends java.lang.Comparable<FormatVersionType>

A format version.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `default int` | `compareTo​(FormatVersionType o)` |
  `int` | `major()` |
  `int` | `minor()` |
  `default java.lang.String` | `toHumanString()` |

- ## Method Details

  - ### major

    @Parameter int major()
    Returns:
      The major number for a format

  - ### minor

    @Parameter int minor()
    Returns:
      The minor number for a format

  - ### toHumanString

    default java.lang.String toHumanString()
    Returns:
      The humanly-readable version string

  - ### compareTo

    default int compareTo​(FormatVersionType o)
    Specified by:
      `compareTo` in interface `java.lang.Comparable<FormatVersionType>`