-
-
Notifications
You must be signed in to change notification settings - Fork 117
/
index.xml
104 lines (87 loc) · 3.61 KB
/
index.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="ISO-8859-1"?>
<document>
<properties>
<title>Home</title>
<author>Stephen Colebourne</author>
</properties>
<body>
<section name="Joda Money">
<p>
Joda-Money provides a library of classes to store amounts of money.
</p>
<p>
Joda-Money does not provide, nor is it intended to provide, monetary algorithms beyond the most basic and obvious.
This is because the requirements for these algorithms vary widely between domains.
This library is intended to act as the base layer, providing classes that should be in the JDK.
</p>
<p>
As a flavour of Joda-Money, here's some example code:
<source>
<span class="comment">// create a monetary value</span>
<a href="apidocs/org/joda/money/Money.html">Money</a> money = Money.parse("USD 23.87");
<span class="comment">// add another amount with safe double conversion</span>
<a href="apidocs/org/joda/money/CurrencyUnit.html">CurrencyUnit</a> usd = CurrencyUnit.of("USD");
money = money.plus(Money.of(usd, 12.43d));
<span class="comment">// subtracts an amount in dollars</span>
money = money.minusMajor(2);
<span class="comment">// multiplies by 3.5 with rounding</span>
money = money.multipliedBy(3.5d, RoundingMode.DOWN);
<span class="comment">// compare two amounts</span>
boolean bigAmount = money.isGreaterThan(dailyWage);
<span class="comment">// convert to GBP using a supplied rate</span>
BigDecimal conversionRate = ...; // obtained from code outside Joda-Money
Money moneyGBP = money.convertTo(CurrencyUnit.GBP, conversionRate);
<span class="comment">// use a BigMoney for more complex calculations where scale matters</span>
<a href="apidocs/org/joda/money/BigMoney.html">BigMoney</a> moneyCalc = money.toBigMoney();
</source>
</p>
<p>
Users are reminded that this software, like all open source software, is <a href="license.html">provided</a>
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
</p>
<p>
Version 0.6 was released on 2011-02-15 -
<a href="https://sourceforge.net/projects/joda-money/files/joda-money/0.6/">Download now</a><br />
Joda Money is licensed under the business-friendly <a href="license.html">Apache 2.0 licence</a>.
</p>
</section>
<section name="Documentation">
<p>
Various documentation is available:
<ul>
<li>The javadoc for the <a href="apidocs/index.html">current release</a></li>
<li>The <a href="userguide.html">user guide</a></li>
<!--li>A <a href="faq.html">FAQ</a> list</li-->
<li>The <a href="http://joda-money.svn.sourceforge.net/viewvc/joda-money/JodaMoney/trunk/">Subversion repository</a></li>
</ul>
</p>
</section>
<section name="Releases">
<p>
There are no full releases yet!
<a href="https://sourceforge.net/projects/joda-money/files/joda-money/0.6/">Release 0.6</a>
is the current development release intended for feedback rather than production use.
(The code is fully tested, but there may yet be bugs and the API may yet change).
</p>
<p>
There are no runtime dependencies beyond JDK 1.5.<br />
(Joda-Money has a compile-time dependency on Joda-Convert, but this is not required at runtime)
</p>
</section>
<section name="Support">
<p>
Support on bugs, library usage or enhancement requests is available on a best efforts basis via:
</p>
<ul>
<li>the joda-money-interest <a href="mail-lists.html">mailing list</a>. Due to spam, you must be subscribed to post to the mailing list.</li>
<li>the joda-money sourceforge <a href="http://sourceforge.net/projects/joda-money/forums/forum/996056">forum</a>.</li>
</ul>
<p>
<br />
</p>
<p>
<br />
</p>
</section>
</body>
</document>