Interface CVersionType

All Superinterfaces:
Comparable<CVersionType>, Formattable
All Known Implementing Classes:
CVersion

@Immutable public interface CVersionType extends Comparable<CVersionType>, Formattable
A version number.
  • Method Details

    • major

      @Parameter BigInteger major()
      Returns:
      The major version
    • minor

      @Parameter BigInteger minor()
      Returns:
      The minor version
    • patch

      @Parameter BigInteger patch()
      Returns:
      The patch version
    • qualifier

      Returns:
      The version qualifier
    • compareTo

      default int compareTo(CVersionType other)
      Specified by:
      compareTo in interface Comparable<CVersionType>
    • checkPreconditions

      @Check default void checkPreconditions()
      Check preconditions for the type.
    • formatTo

      default void formatTo(Formatter formatter, int flags, int width, int precision)
      Specified by:
      formatTo in interface Formattable