AvailVersion

data class AvailVersion(    val major: Int,     val minor: Int,     val revision: Int,     val suffix: String = "",     val isValid: Boolean = true) : Comparable<AvailVersion>

A version for Avail.

Author

Richard Arriaga

Constructors

Link copied to clipboard
fun AvailVersion(    major: Int,     minor: Int,     revision: Int,     suffix: String = "",     isValid: Boolean = true)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun compareTo(other: AvailVersion): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val isValid: Boolean = true

true indicates it is a valid version; false otherwise. Only INVALID should be invalid.

Link copied to clipboard
val major: Int

The numeric major revision of the version.

Link copied to clipboard
val minor: Int

The numeric minor revision of the version.

Link copied to clipboard
val revision: Int

The numeric revision of the version.

Link copied to clipboard
val suffix: String

The suffix of the version string, e.g. "-SNAPSHOT". All suffixes must start with "-"

Link copied to clipboard
val version: String