Class Version

  • All Implemented Interfaces:

    
    public final class Version
    
                        

    Representation of a version number.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final int major
      public final int minor
    • Constructor Summary

      Constructors 
      Constructor Description
      Version(int major, int minor)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      int getMajor()
      int getMinor()
      static Version fromString(@NotNull() String versionString) Parses a version object from a string.
      boolean equals(@Nullable() Object obj)
      int hashCode()
      String toString() Prints the version as a string in the form of .
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Version

        Version(int major, int minor)
        Parameters:
        major - The major part of the version.
        minor - The minor part of the version.
    • Method Detail

      • fromString

         static Version fromString(@NotNull() String versionString)

        Parses a version object from a string.

        Parameters:
        versionString - A string containing the version to be parsed.
      • toString

        @NotNull() String toString()

        Prints the version as a string in the form of .