Interface Version

All Superinterfaces:
Comparable<Version>

public interface Version extends Comparable<Version>
An interface that represents a generic version with major, minor, patch and buildNumber fields.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Gives back the buildNumber field of the version, such as 4 in version 1.5.3.4.
    short
    Gives back the major field of the version, such as 1 in version 1.5.3.4.
    short
    Gives back the minor field of the version, such as 5 in version 1.5.3.4.
    long
    Gives back the patch field of the version, such as 3 in version 1.5.3.4.

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • major

      short major()
      Gives back the major field of the version, such as 1 in version 1.5.3.4.
      Returns:
      The major field of the version.
    • minor

      short minor()
      Gives back the minor field of the version, such as 5 in version 1.5.3.4.
      Returns:
      The minor field of the version.
    • patch

      long patch()
      Gives back the patch field of the version, such as 3 in version 1.5.3.4.
      Returns:
      The patch field of the version.
    • buildNumber

      long buildNumber()
      Gives back the buildNumber field of the version, such as 4 in version 1.5.3.4.
      Returns:
      The buildNumber field of the version.