final case class Mass(kg: Double) extends AnyVal with BaseValue[Mass] with Product with Serializable
- Source
- units.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Mass
- Serializable
- Product
- Equals
- BaseValue
- Ordered
- Comparable
- AnyVal
- Any
Implicitly
- by orderingToOrdered
- by richDrxAny
- by DrxBoundOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def *(scale: Long)(implicit d1: DummyImplicit): Mass
- Definition Classes
- BaseValue
- def *(scale: Int)(implicit d1: DummyImplicit): Mass
- Definition Classes
- BaseValue
- def *(scale: Double)(implicit d1: DummyImplicit): Mass
- Definition Classes
- BaseValue
- def +(that: BaseValue[Mass])(implicit d1: DummyImplicit): Mass
- Definition Classes
- BaseValue
- def +-(eps: BaseValue[Mass])(implicit b: Boundable[Mass]): Bound[Mass]
- Definition Classes
- BaseValue
- def -(that: BaseValue[Mass])(implicit d1: DummyImplicit): Mass
- Definition Classes
- BaseValue
- def ->[B](y: B): (Mass, B)
- def /(scale: Long)(implicit d1: DummyImplicit): Mass
- Definition Classes
- BaseValue
- def /(scale: Int)(implicit d1: DummyImplicit): Mass
- Definition Classes
- BaseValue
- def /(scale: Double)(implicit d1: DummyImplicit): Mass
- Definition Classes
- BaseValue
- def /(that: BaseValue[Mass])(implicit d1: DummyImplicit): Double
- Definition Classes
- BaseValue
- def <(that: Mass): Boolean
- Definition Classes
- Ordered
- def <=(that: Mass): Boolean
- Definition Classes
- Ordered
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def >(that: Mass): Boolean
- Definition Classes
- Ordered
- def >=(that: Mass): Boolean
- Definition Classes
- Ordered
- def abs: Mass
- Definition Classes
- BaseValue
- def apply(v: Double): Mass
- def applyIf(t: Boolean, f: (Mass) => Mass): Mass
- Implicit
- This member is added by an implicit conversion from Mass toDrxAny[Mass] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (Mass) => Boolean)(f: (Mass) => Mass): Mass
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from Mass toDrxAny[Mass] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def as(unit: String): Double
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def baseValue: Double
- def compare(that: Mass): Int
- Definition Classes
- Mass → Ordered
- def compare(that: BaseValue[Mass]): Int
- Definition Classes
- BaseValue
- def compareTo(that: Mass): Int
- Definition Classes
- Ordered → Comparable
- def elementOf(xs: Set[Mass]): Boolean
- Implicit
- This member is added by an implicit conversion from Mass toDrxAny[Mass] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (Mass) => Boolean, msg: => Any): Mass
- def ensuring(cond: (Mass) => Boolean): Mass
- def ensuring(cond: Boolean, msg: => Any): Mass
- def ensuring(cond: Boolean): Mass
- def formatted(fmtstr: String): String
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val kg: Double
- def lerp(that: BaseValue[Mass])(ratio: Double): Mass
- Definition Classes
- BaseValue
- def nice: String
- def noneIf(f: (Mass) => Boolean): Option[Mass]
- Implicit
- This member is added by an implicit conversion from Mass toDrxAny[Mass] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def optionIf(f: (Mass) => Boolean): Option[Mass]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from Mass toDrxAny[Mass] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def preApply[B](f: (Mass) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from Mass toDrxAny[Mass] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def sideEffect(f: (Mass) => Unit): Mass
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from Mass toDrxAny[Mass] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def someIf(f: (Mass) => Boolean): Option[Mass]
- Implicit
- This member is added by an implicit conversion from Mass toDrxAny[Mass] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- val thisAny: Mass
- Implicit
- This member is added by an implicit conversion from Mass toDrxAny[Mass] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def till(maxArg: Mass): Bound[Mass]
Bound construction since the Range constructor is deprecated
Bound construction since the Range constructor is deprecated
- Implicit
- This member is added by an implicit conversion from Mass toBoundOps[Mass] performed by method DrxBoundOps in cc.drx.predef.Enrich.
- Definition Classes
- BoundOps
- def toString(): String
- Definition Classes
- Mass → Any
- def unary_-: Mass
- Definition Classes
- BaseValue
- def ~(that: Mass)(implicit b: Boundable[Mass]): Bound[Mass]
- Definition Classes
- BaseValue
- def ~=(that: BaseValue[Mass])(implicit eps: Eps): Boolean
- Definition Classes
- BaseValue
- def ~>(that: BaseValue[Mass])(implicit b: Boundable[Mass]): Bound[Mass]
- Definition Classes
- BaseValue
Shadowed Implicit Value Members
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from Mass toany2stringadd[Mass] performed by method any2stringadd in scala.Predef.
- 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:(mass: any2stringadd[Mass]).+(other)
- Definition Classes
- any2stringadd
- def <(that: Mass): Boolean
- Implicit
- This member is added by an implicit conversion from Mass toOrdered[Mass] 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:(mass: Ordered[Mass]).<(that)
- Definition Classes
- Ordered
- def <=(that: Mass): Boolean
- Implicit
- This member is added by an implicit conversion from Mass toOrdered[Mass] 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:(mass: Ordered[Mass]).<=(that)
- Definition Classes
- Ordered
- def >(that: Mass): Boolean
- Implicit
- This member is added by an implicit conversion from Mass toOrdered[Mass] 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:(mass: Ordered[Mass]).>(that)
- Definition Classes
- Ordered
- def >=(that: Mass): Boolean
- Implicit
- This member is added by an implicit conversion from Mass toOrdered[Mass] 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:(mass: Ordered[Mass]).>=(that)
- Definition Classes
- Ordered
- def compare(that: Mass): Int
- Implicit
- This member is added by an implicit conversion from Mass toOrdered[Mass] 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:(mass: Ordered[Mass]).compare(that)
- Definition Classes
- Ordered
- def compareTo(that: Mass): Int
- Implicit
- This member is added by an implicit conversion from Mass toOrdered[Mass] 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:(mass: Ordered[Mass]).compareTo(that)
- Definition Classes
- Ordered → Comparable
Deprecated Value Members
- def ?>(f: (Mass) => Boolean): Option[Mass]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from Mass toDrxAny[Mass] 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: (Mass) => B): B
- Implicit
- This member is added by an implicit conversion from Mass toDrxAny[Mass] 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): (Mass, B)
- Implicit
- This member is added by an implicit conversion from Mass toArrowAssoc[Mass] 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.