public final class MonetaryFunctions
extends java.lang.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.MonetaryOperator |
majorPart()
Access the shared instance of
MajorPart for use. |
static javax.money.MonetaryQuery<java.lang.Long> |
majorUnits()
Access the shared instance of
MajorUnits for use. |
static javax.money.MonetaryOperator |
minorPart()
Access the shared instance of
MinorPart for use. |
static javax.money.MonetaryQuery<java.lang.Long> |
minorUnits()
Access the shared instance of
MinorUnits for use. |
static javax.money.MonetaryOperator |
percent(java.math.BigDecimal decimal)
Factory method creating a new instance with the given {@code BigDecimal) percent value;
|
static javax.money.MonetaryOperator |
percent(java.lang.Number number)
Factory method creating a new instance with the given {@code Number) percent value;
|
static javax.money.MonetaryOperator |
permil(java.math.BigDecimal decimal)
Factory method creating a new instance with the given {@code BigDecimal) permil value;
|
static javax.money.MonetaryOperator |
permil(java.lang.Number number)
Factory method creating a new instance with the given {@code Number) permil value;
|
static javax.money.MonetaryOperator |
permil(java.lang.Number number,
java.math.MathContext mathContext)
Factory method creating a new instance with the given {@code Number) permil value;
|
static javax.money.MonetaryOperator |
reciprocal()
Return a
MonetaryAdjuster realizing the recorpocal value of
f(R) = 1/R. |
public static javax.money.MonetaryOperator majorPart()
MajorPart for use.null.public static javax.money.MonetaryQuery<java.lang.Long> majorUnits()
MajorUnits for use.null.public static javax.money.MonetaryOperator minorPart()
MinorPart for use.null.public static javax.money.MonetaryQuery<java.lang.Long> minorUnits()
MinorUnits for use.null.public static javax.money.MonetaryOperator percent(java.math.BigDecimal decimal)
decimal - the decimal value of the percent operator being created.Percent operatorpublic static javax.money.MonetaryOperator percent(java.lang.Number number)
decimal - the decimal value of the percent operator being created.Percent operatorpublic static javax.money.MonetaryOperator permil(java.math.BigDecimal decimal)
decimal - the decimal value of the permil operator being created.Permil operatorpublic static javax.money.MonetaryOperator permil(java.lang.Number number)
decimal - the decimal value of the permil operator being created.Permil operatorpublic static javax.money.MonetaryOperator permil(java.lang.Number number,
java.math.MathContext mathContext)
decimal - the decimal value of the permil operator being created.Permil operatorpublic static javax.money.MonetaryOperator reciprocal()
MonetaryAdjuster realizing the recorpocal value of
f(R) = 1/R.null