Class VersionRange


  • public class VersionRange
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      VersionRange​(java.lang.String baseVersion, int rangeFrom, int rangeTo)
      Creates a new version range.
    • Constructor Detail

      • VersionRange

        public VersionRange​(java.lang.String baseVersion,
                            int rangeFrom,
                            int rangeTo)
        Creates a new version range. Giving "1.7", 0, and 5 for example would represent the range from 1.7-1.7.5.
        Parameters:
        baseVersion - base version
        rangeFrom - minor version the range begins at, must be greater than or equal to 0
        rangeTo - minor version the range ends at, must be greater than rangeFrom
    • Method Detail

      • baseVersion

        public java.lang.String baseVersion()
        Returns the major version name.
        Returns:
        major version name
      • rangeFrom

        public int rangeFrom()
        Returns the lowest included minor version.
        Returns:
        lowest included minor version
      • rangeTo

        public int rangeTo()
        Returns the highest included minor version.
        Returns:
        highest included minor version
      • getBaseVersion

        @Deprecated
        public java.lang.String getBaseVersion()
        Deprecated.
      • getRangeFrom

        @Deprecated
        public int getRangeFrom()
        Deprecated.
      • getRangeTo

        @Deprecated
        public int getRangeTo()
        Deprecated.