Packages

c

busymachines.semver

SemanticVersion

final case class SemanticVersion(major: Int, minor: Int, patch: Int, label: Option[Label] = Option.empty[Label], meta: Option[String] = Option.empty[String]) extends SemanticVersionOrdering with Ordered[SemanticVersion] with Product with Serializable

A type denoting semantic versions, eg: 4.1.0, with an optional label like "RC", or "beta", etc.

meta

denotes various meta-information, that is included at the end of the version, after the "+" sign. Examples: git sha version:

4.1.0-SNAPSHOT+11223aaff
Since

10 Nov 2017

Linear Supertypes
Serializable, Product, Equals, SemanticVersionOrdering, Ordered[SemanticVersion], Comparable[SemanticVersion], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SemanticVersion
  2. Serializable
  3. Product
  4. Equals
  5. SemanticVersionOrdering
  6. Ordered
  7. Comparable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SemanticVersion(major: Int, minor: Int, patch: Int, label: Option[Label] = Option.empty[Label], meta: Option[String] = Option.empty[String])

    meta

    denotes various meta-information, that is included at the end of the version, after the "+" sign. Examples: git sha version:

    4.1.0-SNAPSHOT+11223aaff

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def <(that: SemanticVersion): Boolean
    Definition Classes
    Ordered
  4. def <=(that: SemanticVersion): Boolean
    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def >(that: SemanticVersion): Boolean
    Definition Classes
    Ordered
  7. def >=(that: SemanticVersion): Boolean
    Definition Classes
    Ordered
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def compare(that: SemanticVersion): Int

    See ordering rules: In the sem-ver spec: http://semver.org/spec/v2.0.0.html

    See ordering rules: In the sem-ver spec: http://semver.org/spec/v2.0.0.html

    Example: 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0

    Definition Classes
    SemanticVersionOrdering → Ordered
  11. def compareTo(that: SemanticVersion): Int
    Definition Classes
    Ordered → Comparable
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. val label: Option[Label]
  17. def lowercase: String

    eg:

    eg:

    3.1.2-rc4+1234
  18. def lowercaseWithDots: String

    eg:

    eg:

    3.1.2-rc.4+1234
  19. val major: Int
  20. val meta: Option[String]
  21. val minor: Int
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. val patch: Int
  26. def productElementNames: Iterator[String]
    Definition Classes
    Product
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. lazy val toString: String
    Definition Classes
    SemanticVersion → AnyRef → Any
  29. def uppercase: String

    eg:

    eg:

    3.1.2-RC4+1234
  30. def uppercaseWithDots: String

    eg:

    eg:

    3.1.2-RC.4+1234
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from SemanticVersionOrdering

Inherited from Ordered[SemanticVersion]

Inherited from Comparable[SemanticVersion]

Inherited from AnyRef

Inherited from Any

Ungrouped