package version
- Alphabetic
- Public
- All
Type Members
-
case class
BuildMetadataComponent(identifiers: Component*) extends Component with Product with Serializable
A build metadata component [SemVer] It behaves as {{EmptyComponent}} when comparing to other components, i.e.
A build metadata component [SemVer] It behaves as {{EmptyComponent}} when comparing to other components, i.e. it doesn't count.
- identifiers
build identifiers
- See also
https://semver.org/spec/v2.0.0.html#spec-item-10
-
sealed
trait
Component extends Ordered[Component]
Represents one section of a version string E.g.
Represents one section of a version string E.g. for the version string "1.foo.42" the components would be "1", "foo" and "42".
-
case class
NumericComponent(x: BigInt) extends Component with Product with Serializable
A numeric component.
A numeric component. Compares naturally to itself.
-
case class
PreReleaseComponent(identifiers: Component*) extends Component with Product with Serializable
A pre-release component [SemVer]
A pre-release component [SemVer]
Precedence for a pre-release component is determined by comparing each identifier from left to right until a difference is found as follows: - identifiers consisting of only digits are compared numerically - identifiers with letters or hyphens are compared lexically in ASCII sort order - numeric identifiers always have lower precedence than non-numeric identifiers - a larger set of fields has a higher precedence than a smaller set, if all of the preceding identifiers are equal
Example: alpha < alpha.1 < alpha.beta < beta < beta.2 < beta.11 < rc.1
A pre-release component have a lower precedence than an empty component.
- identifiers
build identifiers
- See also
https://semver.org/spec/v2.0.0.html#spec-item-9
-
case class
StringComponent(s: String) extends Component with Product with Serializable
A string component.
A string component. String components are compared lexicographically and have higher precedence than numeric components.
- case class Version(components: Component*) extends Ordered[Version] with Product with Serializable
Value Members
- object Component
-
object
EmptyComponent extends Component with Product with Serializable
An empty component.
An empty component. It's less than any other component, unless the other component explicitly states otherwise.
- object Version extends SimpleVersionImpl with SemVer20Impl with Serializable