Registry / utility / moneta

moneta

JSON →
library1.4.5javamavenunverified

Reference implementation of JSR 354 for representing, transporting, and performing calculations with Money and Currency.

<dependency> <groupId>org.javamoney</groupId> <artifactId>moneta</artifactId> <version>1.4.5</version> </dependency>
INSTALL
IMPORT
SIG · MONETA
M
moneta
utilityjavav1.4.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Monetary
javax.money.Monetary

Create a monetary amount of 100.50 USD.

import javax.money.Monetary; import javax.money.MonetaryAmount; MonetaryAmount amount = Monetary.getDefaultAmountFactory() .setCurrency("USD") .setNumber(100.50) .create(); System.out.println("Amount: " + amount);
Debug
Known issues
gotchaJSR 354 API may conflict with Java 9+ module system.
fix
Add requires javax.money; to module-info.java or use --add-modules.
affects: >=1.4
Upgrade
Version history
1.4.5latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
moneta — mvn dependency:get moneta · libregistry