IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Public Member Functions | |
Money (int amount, String currency) | |
Constructs a money from the given amount and currency. More... | |
IMoney | Add (IMoney m) |
Adds a money to this money. Forwards the request to the AddMoney helper. More... | |
IMoney | AddMoney (Money m) |
Adds a simple Money to this money. This is a helper method for implementing double dispatch. More... | |
IMoney | AddMoneyBag (MoneyBag s) |
Adds a MoneyBag to this money. This is a helper method for implementing double dispatch. More... | |
override bool | Equals (Object anObject) |
override int | GetHashCode () |
IMoney | Multiply (int factor) |
Multiplies a money by the given factor. More... | |
IMoney | Negate () |
Negates this money. More... | |
IMoney | Subtract (IMoney m) |
Subtracts a money from this money. More... | |
override String | ToString () |
Properties | |
int | Amount [get] |
String | Currency [get] |
bool | IsZero [get] |
![]() | |
bool | IsZero [get] |
True if this money is zero. More... | |
Private Attributes | |
int | fAmount |
String | fCurrency |
A simple Money.
|
inline |
Constructs a money from the given amount and currency.
Adds a money to this money. Forwards the request to the AddMoney helper.
Implements NUnit.Samples.Money.IMoney.
References NUnit.Samples.Money.IMoney.AddMoney().
Referenced by NUnit.Samples.Money.MoneyTest.MixedSimpleAdd(), NUnit.Samples.Money.MoneyTest.SimpleAdd(), and NUnit.Samples.Money.MoneyTest.SimpleBagAdd().
Adds a simple Money to this money. This is a helper method for implementing double dispatch.
Implements NUnit.Samples.Money.IMoney.
References NUnit.Samples.Money.Money.Amount, and NUnit.Samples.Money.Money.Currency.
Adds a MoneyBag to this money. This is a helper method for implementing double dispatch.
Implements NUnit.Samples.Money.IMoney.
References NUnit.Samples.Money.MoneyBag.AddMoney().
|
inline |
|
inline |
Referenced by NUnit.Samples.Money.MoneyBag.GetHashCode(), and NUnit.Samples.Money.MoneyTest.MoneyHash().
|
inline |
Multiplies a money by the given factor.
Implements NUnit.Samples.Money.IMoney.
Referenced by NUnit.Samples.Money.MoneyBag.Multiply(), and NUnit.Samples.Money.MoneyTest.SimpleMultiply().
|
inline |
Negates this money.
Implements NUnit.Samples.Money.IMoney.
Referenced by NUnit.Samples.Money.MoneyBag.Negate(), and NUnit.Samples.Money.MoneyTest.SimpleNegate().
Subtracts a money from this money.
Implements NUnit.Samples.Money.IMoney.
References NUnit.Samples.Money.IMoney.Negate().
Referenced by NUnit.Samples.Money.MoneyTest.Normalize4(), and NUnit.Samples.Money.MoneyTest.SimpleSubtract().
|
inline |
Referenced by NUnit.Samples.Money.MoneyTest.Print().
|
private |
|
private |
|
get |
|
get |
|
get |