Version

com.phasmidsoftware.lascala.Version
See theVersion companion class
object Version

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Version.type

Members list

Value members

Concrete methods

def apply(x: Long): Version[Long]
def getVersion: String

This code relies on the sbt-buildinfo plugin which creates a source file called BuildInfo.scala in the following directory: target/scala-2.x/src_managed/main/sbt-buildinfo/

This code relies on the sbt-buildinfo plugin which creates a source file called BuildInfo.scala in the following directory: target/scala-2.x/src_managed/main/sbt-buildinfo/

Attributes

def longVersion(s: String): Version[Long]
def parse[V](s: String)(f: String => Version[V]): Option[Version[V]]

Method to parse a String such as "1.0.11" as a Version.

Method to parse a String such as "1.0.11" as a Version.

Each component is parsed by f, and the components are nested from the right: "1.0.11" is 1 with the subversion 0, which has the subversion 11.

Type parameters

V

the underlying type of the Version

Value parameters

f

a function to parse one component

s

the String to be parsed

Attributes

Returns

Some(version), or None if any component cannot be parsed by f

def parseLong(s: String): Option[Version[Long]]

Givens

Givens

Renders a Version as its version/subversions separated by ".", for example 1.0.11.

Renders a Version as its version/subversions separated by ".", for example 1.0.11.

Attributes