p
coulomb
package coulomb
Statically typed unit analysis for Scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- coulomb
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Package Members
Type Members
- trait %*[L, R] extends AnyRef
Represents the product of two unit expressions L and R
- trait %/[L, R] extends AnyRef
Represents the unit division L / R
- trait %^[B, E] extends AnyRef
Represents raising unit expression B to integer power E
- implicit final class CoulombExtendWithUnits[N] extends AnyVal with Serializable
enhances numeric types with utility methods for
coulomb
- final class Quantity[N, U] extends AnyVal with Serializable
A numeric quantity with an associated unit
A numeric quantity with an associated unit
- N
The value type (Double, Int, etc)
- U
The unit type (Second, Byte, Byte %/ Second, etc)
- trait UnitTypeName[T] extends AnyRef
- trait Unitless extends AnyRef
Represents a unitless value
- type WithUnit[N, U] = Quantity[N, U]
An "infix" type alias for Quantity
Value Members
- object Quantity extends Serializable
static methods for quantities with units
- object UnitTypeName