public final class MonetaryFunctions extends Object
The class is thread-safe, which is also true for all functions returned by this class.
| Modifier and Type | Method and Description |
|---|---|
static javax.money.MonetaryAdjuster |
majorPart()
Access the shared instance of
MajorPart for use. |
static javax.money.MonetaryQuery<Long> |
majorUnits()
Access the shared instance of
MinorPart for use. |
static javax.money.MonetaryAdjuster |
minorPart()
Access the shared instance of
MinorPart for use. |
static javax.money.MonetaryQuery<Long> |
minorUnits()
Access the shared instance of
MinorPart for use. |
static javax.money.MonetaryAdjuster |
percent(BigDecimal decimal)
Factory method creating a new instance with the given {@code BigDecimal) percent value;
|
static javax.money.MonetaryAdjuster |
percent(Number number)
Factory method creating a new instance with the given {@code Number) percent value;
|
static javax.money.MonetaryAdjuster |
permil(BigDecimal decimal)
Factory method creating a new instance with the given {@code BigDecimal) permil value;
|
static javax.money.MonetaryAdjuster |
permil(Number number)
Factory method creating a new instance with the given {@code Number) permil value;
|
static javax.money.MonetaryAdjuster |
permil(Number number,
MathContext mathContext)
Factory method creating a new instance with the given {@code Number) permil value;
|
static javax.money.MonetaryAdjuster |
reciprocal()
Return a
MonetaryAdjuster realizing the recorpocal value of
f(R) = 1/R. |
public static javax.money.MonetaryAdjuster reciprocal()
MonetaryAdjuster realizing the recorpocal value of
f(R) = 1/R.nullpublic static javax.money.MonetaryAdjuster permil(BigDecimal decimal)
decimal - the decimal value of the permil operator being created.Permil operatorpublic static javax.money.MonetaryAdjuster permil(Number number)
decimal - the decimal value of the permil operator being created.Permil operatorpublic static javax.money.MonetaryAdjuster permil(Number number, MathContext mathContext)
decimal - the decimal value of the permil operator being created.Permil operatorpublic static javax.money.MonetaryAdjuster percent(BigDecimal decimal)
decimal - the decimal value of the percent operator being created.Percent operatorpublic static javax.money.MonetaryAdjuster percent(Number number)
decimal - the decimal value of the percent operator being created.Percent operatorpublic static javax.money.MonetaryAdjuster minorPart()
MinorPart for use.null.public static javax.money.MonetaryAdjuster majorPart()
MajorPart for use.null.public static javax.money.MonetaryQuery<Long> minorUnits()
MinorPart for use.null.public static javax.money.MonetaryQuery<Long> majorUnits()
MinorPart for use.null.Copyright © 2012–2013 JSR 354 - Expert Group. All rights reserved.