final case class Forex[F[_]](config: ForexConfig, client: OerClient[F]) extends Product with Serializable
Starts building the fluent interface for currency look-up and conversion, Forex class has methods rate and convert, which set the source currency to the currency we are interested in. They return ForexLookupTo object which is then passed to methods in ForexLookupTo class in the fluent interface.
- config
A configurator for Forex object
- client
Passed down client that does actual work
- Alphabetic
- By Inheritance
- Forex
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Forex(config: ForexConfig, client: OerClient[F])
- config
A configurator for Forex object
- client
Passed down client that does actual work
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val client: OerClient[F]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val config: ForexConfig
- def convert(amount: Double, currency: CurrencyUnit): ForexLookupTo[F]
Starts building a currency conversion from the supplied currency, for the supplied amount.
Starts building a currency conversion from the supplied currency, for the supplied amount.
- amount
The amount of currency to be converted
- currency
CurrencyUnit to convert from
- returns
a ForexLookupTo, part of the currency conversion fluent interface.
- def convert(amount: Double): ForexLookupTo[F]
Starts building a currency conversion for the supplied amount, using the currency specified in config
Starts building a currency conversion for the supplied amount, using the currency specified in config
- amount
The amount of currency to be converted
- returns
a ForexLookupTo, part of the currency conversion fluent interface
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def rate(currency: CurrencyUnit): ForexLookupTo[F]
Starts building a fluent interface, performs currency look up from *source* currency.
Starts building a fluent interface, performs currency look up from *source* currency. (The target currency will be supplied to the ForexLookupTo later).
- currency
Source currency
- returns
ForexLookupTo object which is the part of the fluent interface
- def rate: ForexLookupTo[F]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated