Class ServerVersion

java.lang.Object
com.mongodb.connection.ServerVersion
All Implemented Interfaces:
Comparable<ServerVersion>

@Deprecated(since="2021-05-27") public class ServerVersion extends Object implements Comparable<ServerVersion>
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Holds an array of three integers representing the server version, e.g. [3, 4, 1].
Since:
3.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Creates a server version which will compare as less than all other valid versions
    ServerVersion(int majorVersion, int minorVersion)
    Deprecated.
    Constructs a new instance with the given major and minor versions and a patch version of 0.
    ServerVersion(List<Integer> versionList)
    Deprecated.
    Constructs a new instance with the given version list of integers.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deprecated.
     
    boolean
    Deprecated.
     
    Deprecated.
    Gets the version list.
    int
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ServerVersion

      public ServerVersion()
      Deprecated.
      Creates a server version which will compare as less than all other valid versions
    • ServerVersion

      public ServerVersion(List<Integer> versionList)
      Deprecated.
      Constructs a new instance with the given version list of integers.
      Parameters:
      versionList - a non-null, three-item list of integers
    • ServerVersion

      public ServerVersion(int majorVersion, int minorVersion)
      Deprecated.
      Constructs a new instance with the given major and minor versions and a patch version of 0.
      Parameters:
      majorVersion - the major version
      minorVersion - the minor version
  • Method Details