public final class MonetaryUtil 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.MonetaryOperator |
majorPart()
Access the shared instance of
MajorPart for use. |
static javax.money.MonetaryQuery<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<Long> |
minorUnits()
Access the shared instance of
MinorUnits for use. |
static javax.money.MonetaryOperator |
percent(BigDecimal decimal)
Factory method creating a new instance with the given
BigDecimal percent value. |
static javax.money.MonetaryOperator |
percent(Number number)
Factory method creating a new instance with the given
Number percent value. |
static javax.money.MonetaryOperator |
permil(BigDecimal decimal)
Factory method creating a new instance with the given
BigDecimal permil value. |
static javax.money.MonetaryOperator |
permil(Number number)
Factory method creating a new instance with the given
Number permil value. |
static javax.money.MonetaryOperator |
permil(Number number,
MathContext mathContext)
Factory method creating a new instance with the given
Number permil value. |
static javax.money.MonetaryOperator |
reciprocal()
Return a
MonetaryOperator realizing the recorpocal value of
f(R) = 1/R. |
public static javax.money.MonetaryOperator reciprocal()
MonetaryOperator realizing the recorpocal value of
f(R) = 1/R.nullpublic static javax.money.MonetaryOperator permil(BigDecimal decimal)
BigDecimal permil value.decimal - the decimal value of the permil operator being created.Permil operatorpublic static javax.money.MonetaryOperator permil(Number number)
Number permil value.number - the number value of the permil operator being created.Permil operatorpublic static javax.money.MonetaryOperator permil(Number number, MathContext mathContext)
Number permil value.number - the number value of the permil operator being created.Permil operatorpublic static javax.money.MonetaryOperator percent(BigDecimal decimal)
BigDecimal percent value.decimal - the decimal value of the percent operator being created.Percent operatorpublic static javax.money.MonetaryOperator percent(Number number)
Number percent value.number - the number value of the percent operator being created.Percent operatorpublic static javax.money.MonetaryOperator minorPart()
MinorPart for use.null.public static javax.money.MonetaryOperator majorPart()
MajorPart for use.null.public static javax.money.MonetaryQuery<Long> minorUnits()
MinorUnits for use.null.public static javax.money.MonetaryQuery<Long> majorUnits()
MajorUnits for use.null.Copyright © 2012-2015 JavaMoney. All Rights Reserved.