case class SemanticVersion(majorVersion: Int, minorVersion: Int) extends Comparable[SemanticVersion] with Product with Serializable
Encapsulate a component version for the convenience of version checks.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SemanticVersion
- Serializable
- Product
- Equals
- Comparable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new SemanticVersion(majorVersion: Int, minorVersion: Int)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def <(targetVersionString: String): Boolean
- def <=(targetVersionString: String): Boolean
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ===(targetVersionString: String): Boolean
- def >(targetVersionString: String): Boolean
- def >=(targetVersionString: String): Boolean
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compareTo(v: SemanticVersion): Int
- Definition Classes
- SemanticVersion → Comparable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isVersionAtLeast(targetVersionString: String): Boolean
- def isVersionAtMost(targetVersionString: String): Boolean
- def isVersionEqualTo(targetVersionString: String): Boolean
- val majorVersion: Int
- val minorVersion: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toDouble: Double
Returning a double in format of "majorVersion.minorVersion".
Returning a double in format of "majorVersion.minorVersion". Note: Not suitable for version comparison, only for logging.
- def toString(): String
- Definition Classes
- SemanticVersion → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()