Class VersionRange.Bound

    • Constructor Detail

      • Bound

        public Bound​(Version version,
                     boolean inclusive)
        Creates a new bound with the specified properties.
        Parameters:
        version - The bounding version, must not be null.
        inclusive - A flag whether the specified version is included in the range or not.
    • Method Detail

      • getVersion

        public Version getVersion()
        Gets the bounding version.
        Returns:
        The bounding version, never null.
      • isInclusive

        public boolean isInclusive()
        Indicates whether the bounding version is included in the range or not.
        Returns:
        true if the bounding version is included in the range, false if not.