Money

object Money extends Dimension[Money]

Factory singleton for Money

Factory singleton for Money

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(value: Double)(fxContext: MoneyContext): Money
def apply(value: BigDecimal)(fxContext: MoneyContext): Money
def apply(value: BigDecimal, currency: Currency): Money
def apply(value: BigDecimal, currency: String)(fxContext: MoneyContext): Try[Money]
def apply[A](n: A, currency: Currency)(num: Numeric[A]): Money
def apply[A](n: A, currency: String)(num: Numeric[A], fxContext: MoneyContext): Try[Money]
def apply(s: String)(fxContext: MoneyContext): Try[Money]
def name: String

Inherited methods

override def equals(that: Any): Boolean
Definition Classes
Dimension -> Any
Inherited from
Dimension
override def hashCode(): Int
Definition Classes
Dimension -> Any
Inherited from
Dimension
protected def parse(value: Any): Try[Money]

Tries to map a string or tuple value to Quantity of this Dimension

Tries to map a string or tuple value to Quantity of this Dimension

Value Params
value

the source string (ie, "10 kW") or tuple (ie, (10, "kW"))

Returns

Try[A]

Inherited from
Dimension
def parseString(s: String): Try[Money]
Inherited from
Dimension
def parseTuple[N](t: (N, String))(num: Numeric[N]): Try[Money]
Inherited from
Dimension
def symbolToUnit(symbol: String): Option[UnitOfMeasure[Money]]

Maps a string representation of a unit symbol into the matching UnitOfMeasure object

Maps a string representation of a unit symbol into the matching UnitOfMeasure object

Value Params
symbol

String

Inherited from
Dimension

Implicits

Inherited implicits

Inherited from
Dimension