Class ServerVersion

    • Method Detail

      • isMockServer

        public static boolean isMockServer​(String versionString)
      • isMockServer

        public boolean isMockServer()
      • of

        public static ServerVersion of​(String versionString)
        1.20.6 => Major (1), Minor (20), Revision (6)
        Returns:
        the server version
      • getVersion

        public static ServerVersion getVersion()
        Returns the current running server version.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • gt

        public boolean gt​(ServerVersion version)
        Returns true if the calling server version is greater than the parameter.
      • gte

        public boolean gte​(ServerVersion version)
        Returns true if the calling server version is greater than or equal to the parameter.
      • lt

        public boolean lt​(ServerVersion version)
        Returns true if the calling server version is less than the parameter.
      • lte

        public boolean lte​(ServerVersion version)
        Returns true if the calling server version is less than or equal to the parameter.
      • getMajor

        public int getMajor()
      • getMinor

        public int getMinor()
      • getRevision

        public int getRevision()