MonetaryContext to be used for Money.
The default MonetaryContext can be configured by adding a file
/javamoney.properties from the classpath with the following content:
# Default MathContext for Money #------------------------------- # Custom MathContext, overrides entries from org.javamoney.moneta.Money.mathContext # RoundingMode hereby is optional (default = HALF_EVEN) org.javamoney.moneta.Money.defaults.precision=256 org.javamoney.moneta.Money.defaults.roundingMode=HALF_EVEN
Hereby the roundingMode constants are the same as defined on
RoundingMode.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private MonetaryContext | |
| private MonetaryContext | |
| public MonetaryContext |
| DefaultMonetaryContextFactory | back to summary |
|---|---|
| pack-priv DefaultMonetaryContextFactory() | |
| createContextWithConfig | back to summary |
|---|---|
| private MonetaryContext createContextWithConfig(Map<String, String> config) | |
| createMonetaryContextNonNullConfig | back to summary |
|---|---|
| private MonetaryContext createMonetaryContextNonNullConfig(Map<String, String> config, int prec) | |
| getContext | back to summary |
|---|---|
| public MonetaryContext getContext() | |