# MutableVersionConstraint

interface MutableVersionConstraint : VersionConstraint

A configurable version constraint. This is exposed to the build author, so that one can express more constraints on a module version.

#### Since

4.4

## Functions

getBranch
Link copied to clipboard
@Nullable
abstract fun getBranch(): @Nullable String
Returns the branch to select versions from.
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
getPreferredVersion
Link copied to clipboard
abstract fun getPreferredVersion(): String
getRejectedVersions
Link copied to clipboard
abstract fun getRejectedVersions(): List<String>
getRequiredVersion
Link copied to clipboard
abstract fun getRequiredVersion(): String
getStrictVersion
Link copied to clipboard
abstract fun getStrictVersion(): String
prefer
Link copied to clipboard
abstract fun prefer(version: String)
Sets the preferred version of this module.
reject
Link copied to clipboard
abstract fun reject(versions: Array<String>)
Declares a list of rejected versions.
rejectAll
Link copied to clipboard
abstract fun rejectAll()
Rejects all versions of this component.
require
Link copied to clipboard
abstract fun require(version: String)
Sets the required version of this module.
setBranch
Link copied to clipboard
abstract fun setBranch(@Nullable branch: @Nullable String)
Specifies the branch to select versions from.
strictly
Link copied to clipboard
abstract fun strictly(version: String)
Sets the version as strict.