UpperBoundCondition

Represents a condition that checks if a version is less than or equal to a specified version.

Constructors

Link copied to clipboard
constructor(operator: UpperBoundOp, version: Version)

Creates an instance of UpperBoundCondition with the given operator and version.

Properties

Link copied to clipboard
open override val operator: UpperBoundOp

The upper-bound operator to be used for comparison.

Link copied to clipboard
open override val version: Version

The version to be compared against.

Functions

Link copied to clipboard
open operator override fun compareTo(other: BoundCondition): Int
Link copied to clipboard
open override fun isSatisfiedBy(version: Version): Boolean

Evaluates whether the specified Version satisfies the condition defined by the implementation.

Link copied to clipboard
open override fun negate(): LowerBoundCondition

Returns a new condition that represents the negation of the current condition.