final case class Version(name: String) extends AnyVal with Ordered[Version] with Product with Serializable
Version represents a string name that may look like a version, its main feature provides a nice human sorting rather than full string bases sorting
- Source
- version.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Version
- Serializable
- Product
- Equals
- Ordered
- Comparable
- AnyVal
- Any
Implicitly
- by orderingToOrdered
- by richDrxAny
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Version(name: String)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def *(alt: String): Version
- def +(other: String): String
- def ->[B](y: B): (Version, B)
- def /(minor: String): Version
- def /(minor: Int): Version
- def <(that: Version): Boolean
- Definition Classes
- Ordered
- def <=(that: Version): Boolean
- Definition Classes
- Ordered
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def >(that: Version): Boolean
- Definition Classes
- Ordered
- def >=(that: Version): Boolean
- Definition Classes
- Ordered
- def applyIf(t: Boolean, f: (Version) => Version): Version
- Implicit
- This member is added by an implicit conversion from Version toDrxAny[Version] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (Version) => Boolean)(f: (Version) => Version): Version
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from Version toDrxAny[Version] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def compare(that: Version): Int
- Definition Classes
- Version → Ordered
- def compareTo(that: Version): Int
- Definition Classes
- Ordered → Comparable
- def elementOf(xs: Set[Version]): Boolean
- Implicit
- This member is added by an implicit conversion from Version toDrxAny[Version] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (Version) => Boolean, msg: => Any): Version
- def ensuring(cond: (Version) => Boolean): Version
- def ensuring(cond: Boolean, msg: => Any): Version
- def ensuring(cond: Boolean): Version
- def formatted(fmtstr: String): String
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def isDigit(s: String): Boolean
- def isFinal: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isIntermediate: Boolean
- def isSnapshot: Boolean
- val name: String
- def noneIf(f: (Version) => Boolean): Option[Version]
- Implicit
- This member is added by an implicit conversion from Version toDrxAny[Version] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def optionIf(f: (Version) => Boolean): Option[Version]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from Version toDrxAny[Version] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def preApply[B](f: (Version) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from Version toDrxAny[Version] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def sideEffect(f: (Version) => Unit): Version
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from Version toDrxAny[Version] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def similar(that: Version, depth: Int): Boolean
- def someIf(f: (Version) => Boolean): Option[Version]
- Implicit
- This member is added by an implicit conversion from Version toDrxAny[Version] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def take(depth: Int): Version
- def terms: IndexedSeq[String]
- val thisAny: Version
- Implicit
- This member is added by an implicit conversion from Version toDrxAny[Version] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def toString(): String
- Definition Classes
- Version → Any
Shadowed Implicit Value Members
- def <(that: Version): Boolean
- Implicit
- This member is added by an implicit conversion from Version toOrdered[Version] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(version: Ordered[Version]).<(that)
- Definition Classes
- Ordered
- def <=(that: Version): Boolean
- Implicit
- This member is added by an implicit conversion from Version toOrdered[Version] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(version: Ordered[Version]).<=(that)
- Definition Classes
- Ordered
- def >(that: Version): Boolean
- Implicit
- This member is added by an implicit conversion from Version toOrdered[Version] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(version: Ordered[Version]).>(that)
- Definition Classes
- Ordered
- def >=(that: Version): Boolean
- Implicit
- This member is added by an implicit conversion from Version toOrdered[Version] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(version: Ordered[Version]).>=(that)
- Definition Classes
- Ordered
- def compare(that: Version): Int
- Implicit
- This member is added by an implicit conversion from Version toOrdered[Version] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(version: Ordered[Version]).compare(that)
- Definition Classes
- Ordered
- def compareTo(that: Version): Int
- Implicit
- This member is added by an implicit conversion from Version toOrdered[Version] performed by method orderingToOrdered in scala.math.Ordered.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(version: Ordered[Version]).compareTo(that)
- Definition Classes
- Ordered → Comparable
Deprecated Value Members
- def ?>(f: (Version) => Boolean): Option[Version]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from Version toDrxAny[Version] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def |>[B](f: (Version) => B): B
- Implicit
- This member is added by an implicit conversion from Version toDrxAny[Version] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (Version, B)
- Implicit
- This member is added by an implicit conversion from Version toArrowAssoc[Version] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.