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