net.liftweb.util.Currency

class Currency

class Currency(val amount : Long, val symbol : String, val decimals : Int)

 extends ScalaObject


A simple fixed-point currency representation


Companion: Currency

Source: Currency.scala(26)

 Constructors

def this(amount : Long, symbol : String, decimals : Int)

 Fields

forDB.. def forDB
Return a string formatted as the URL-encoded symbol followed by the amount and decimals delimited by the "&" symbol
String

 Methods

!=.. final def !=(arg0 : Any) Boolean Any
!=.. final def !=(arg0 : Object) Boolean AnyRef
+.. def +(other : Currency)
Addition on Currency objects [details]
This compares currency symbols to prevent addition of different types of currency to one another.
throws
CurrencyMismatchException - for mismatched currency types.
Currency
-.. def -(other : Currency)
Subtraction on Currency objects [details]
This compares currency symbols to prevent subtraction of different types of currency from one another.
throws
CurrencyMismatchException - for mismatched currency types.
Currency
==.. final def ==(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Any) Boolean Any
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. override def equals(other : Any)
Determines whether two currencies are equal with respect to symbol, amount, and decimal value
Boolean
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. override def toString String
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.