Class ServerVersion

  • All Implemented Interfaces:
    java.lang.Comparable<ServerVersion>

    @Deprecated(since="2021-05-27")
    public class ServerVersion
    extends java.lang.Object
    implements java.lang.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
      ServerVersion()
      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​(java.util.List<java.lang.Integer> versionList)
      Deprecated.
      Constructs a new instance with the given version list of integers.
    • Constructor Detail

      • ServerVersion

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

        public ServerVersion​(java.util.List<java.lang.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 Detail

      • getVersionList

        public java.util.List<java.lang.Integer> getVersionList()
        Deprecated.
        Gets the version list.
        Returns:
        an unmodifiable list of three integers
      • compareTo

        public int compareTo​(ServerVersion o)
        Deprecated.
        Specified by:
        compareTo in interface java.lang.Comparable<ServerVersion>
      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object