Class VulnerableArtifactVersionRange.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • versionEndExcluding

        public VulnerableArtifactVersionRange.Builder versionEndExcluding​(String versionEndExcluding)
        The version immediately after the last affected version.

        Versions up to, but not including this version, are vulnerable.

        Parameters:
        versionEndExcluding - the value to set
        Returns:
        this builder
      • versionEndIncluding

        public VulnerableArtifactVersionRange.Builder versionEndIncluding​(String versionEndIncluding)
        Marks the latest version that is affected by the vulnerability.

        This version and all preceding versions, going back to versionStartExcluding or versionStartIncluding, are considered vulnerable.

        Parameters:
        versionEndIncluding - the value to set
        Returns:
        this builder
      • versionStartIncluding

        public VulnerableArtifactVersionRange.Builder versionStartIncluding​(String versionStartIncluding)
        The first version affected by the vulnerability.

        This version and those following it are considered vulnerable until versionEndExcluding or versionEndIncluding is reached.

        Parameters:
        versionStartIncluding - the value to set
        Returns:
        this builder
      • versionStartExcluding

        public VulnerableArtifactVersionRange.Builder versionStartExcluding​(String versionStartExcluding)
        The version immediately before the start of affected versions.

        The specified version is not affected, but versions immediately after are, up to versionStartIncluding or beyond, if not otherwise defined.

        Parameters:
        versionStartExcluding - the value to set
        Returns:
        this builder