Class ServerVersion

    • Method Detail

      • isMockServer

        public static boolean isMockServer​(String versionString)
      • isMockServer

        public boolean isMockServer()
      • of

        public static ServerVersion of​(String versionString)
        This takes in a server version string and returns the server version object. This string should be in the format major_minor_revision e.g. v1_8_R1 => 1_8_1.
        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()