Uses of Class
com.opengamma.strata.collect.Decimal
-
Packages that use Decimal Package Description com.opengamma.strata.basics.currency Representations of currency and money.com.opengamma.strata.basics.value Basic financial tools for working with values.com.opengamma.strata.collect Root package for common data structures used by Strata.com.opengamma.strata.loader Tools for loading data from files. -
-
Uses of Decimal in com.opengamma.strata.basics.currency
Methods in com.opengamma.strata.basics.currency that return Decimal Modifier and Type Method Description default Decimal
FxRateProvider. convert(Decimal amount, Currency fromCurrency, Currency toCurrency)
Converts an amount in a currency to an amount in a different currency using this rate.Decimal
BigMoney. getValue()
Gets the numeric amount of the money.Decimal
Currency. roundMinorUnits(Decimal amount)
Rounds the specified amount according to the minor units.Methods in com.opengamma.strata.basics.currency with parameters of type Decimal Modifier and Type Method Description default Decimal
FxRateProvider. convert(Decimal amount, Currency fromCurrency, Currency toCurrency)
Converts an amount in a currency to an amount in a different currency using this rate.BigMoney
BigMoney. convertedTo(Currency resultCurrency, Decimal fxRate)
Converts this amount to an equivalent amount the specified currency.Money
Money. convertedTo(Currency resultCurrency, Decimal fxRate)
Converts this amount to an equivalent amount the specified currency.static BigMoney
BigMoney. of(Currency currency, Decimal amount)
Obtains an instance ofBigMoney
for the specified currency and amount.static Money
Money. of(Currency currency, Decimal amount)
Obtains an instance ofMoney
for the specified currency and amount.Decimal
Currency. roundMinorUnits(Decimal amount)
Rounds the specified amount according to the minor units.Method parameters in com.opengamma.strata.basics.currency with type arguments of type Decimal Modifier and Type Method Description BigMoney
BigMoney. map(UnaryOperator<Decimal> mapper)
Applies an operation to the amount.Money
Money. map(UnaryOperator<Decimal> mapper)
Applies an operation to the amount. -
Uses of Decimal in com.opengamma.strata.basics.value
Methods in com.opengamma.strata.basics.value that return Decimal Modifier and Type Method Description default Decimal
Rounding. round(Decimal value)
Rounds the specified value according to the rules of the convention.Methods in com.opengamma.strata.basics.value with parameters of type Decimal Modifier and Type Method Description default Decimal
Rounding. round(Decimal value)
Rounds the specified value according to the rules of the convention. -
Uses of Decimal in com.opengamma.strata.collect
Fields in com.opengamma.strata.collect declared as Decimal Modifier and Type Field Description static Decimal
Decimal. MAX_VALUE
A decimal value representing the largest supported value.static Decimal
Decimal. MIN_VALUE
A decimal value representing the smallest supported value.static Decimal
Decimal. ZERO
A decimal value representing zero.Methods in com.opengamma.strata.collect that return Decimal Modifier and Type Method Description Decimal
Decimal. abs()
Returns a decimal value that is positive.Decimal
FixedScaleDecimal. decimal()
Gets the underlying decimal.Decimal
Decimal. dividedBy(double other)
Returns a decimal value that is equal to this value divided by the specified value.Decimal
Decimal. dividedBy(long other)
Returns a decimal value that is equal to this value divided by the specified value.Decimal
Decimal. dividedBy(Decimal other)
Returns a decimal value that is equal to this value divided by the specified value.Decimal
Decimal. dividedBy(Decimal other, RoundingMode roundingMode)
Returns a decimal value that is equal to this value divided by the specified value, with a rounding mode.Decimal
Decimal. mapAsBigDecimal(UnaryOperator<BigDecimal> fn)
Maps this decimal value using the maths operations ofBigDecimal
.Decimal
Decimal. mapAsDouble(DoubleUnaryOperator fn)
Maps this decimal value using the maths operations ofdouble
.Decimal
Decimal. minus(double other)
Returns a decimal value that is equal to this value minus the specified value.Decimal
Decimal. minus(long other)
Returns a decimal value that is equal to this value minus the specified value.Decimal
Decimal. minus(Decimal other)
Returns a decimal value that is equal to this value minus the specified value.Decimal
Decimal. movePoint(int movement)
Returns a decimal value with the decimal point moved.Decimal
Decimal. multipliedBy(double other)
Returns a decimal value that is equal to this value multiplied by the specified value.Decimal
Decimal. multipliedBy(long other)
Returns a decimal value that is equal to this value multiplied by the specified value.Decimal
Decimal. multipliedBy(Decimal other)
Returns a decimal value that is equal to this value multiplied by the specified value.Decimal
Decimal. negated()
Returns a decimal value that is negated.static Decimal
Decimal. of(double value)
Obtains an instance from adouble
.static Decimal
Decimal. of(long value)
Obtains an instance from along
.static Decimal
Decimal. of(String str)
Obtains an instance from aString
.static Decimal
Decimal. of(BigDecimal value)
Obtains an instance from aBigDecimal
.static Decimal
Decimal. ofScaled(long unscaled, int scale)
Obtains an instance from an unscaled value and a scale.static Decimal
Decimal. parse(String str)
Parses an instance from aString
.Decimal
Decimal. plus(double other)
Returns a decimal value that is equal to this value plus the specified value.Decimal
Decimal. plus(long other)
Returns a decimal value that is equal to this value plus the specified value.Decimal
Decimal. plus(Decimal other)
Returns a decimal value that is equal to this value plus the specified value.Decimal
Decimal. roundToPrecision(int precision, RoundingMode roundingMode)
Returns a decimal value rounded to the specified precision.Decimal
Decimal. roundToScale(int desiredScale, RoundingMode roundingMode)
Returns a decimal value rounded to the specified scale.Decimal
BasisPoints. toDecimalForm()
Converts this basis points to mathematical decimal form.Decimal
Percentage. toDecimalForm()
Converts this percentage to mathematical decimal form.Decimal
BasisPoints. valueBasisPoints()
Gets the value in basis points form as aDecimal
.Decimal
Percentage. valuePercent()
Gets the value in percentage form as aDecimal
.Methods in com.opengamma.strata.collect with parameters of type Decimal Modifier and Type Method Description int
Decimal. compareTo(Decimal other)
Decimal
Decimal. dividedBy(Decimal other)
Returns a decimal value that is equal to this value divided by the specified value.Decimal
Decimal. dividedBy(Decimal other, RoundingMode roundingMode)
Returns a decimal value that is equal to this value divided by the specified value, with a rounding mode.static BasisPoints
BasisPoints. fromDecimalForm(Decimal decimal)
Obtains an instance from mathematical decimal form, where 0.007 will create an instance representing 70bps.static Percentage
Percentage. fromDecimalForm(Decimal decimal)
Obtains an instance from mathematical decimal form, where 0.007 will create an instance representing 0.7%.Decimal
Decimal. minus(Decimal other)
Returns a decimal value that is equal to this value minus the specified value.Decimal
Decimal. multipliedBy(Decimal other)
Returns a decimal value that is equal to this value multiplied by the specified value.static BasisPoints
BasisPoints. of(Decimal basisPoints)
Obtains an instance from a basis points value.static FixedScaleDecimal
FixedScaleDecimal. of(Decimal decimal, int fixedScale)
Obtains an instance from a decimal and scale.static Percentage
Percentage. of(Decimal percentage)
Obtains an instance from a percentage value.Decimal
Decimal. plus(Decimal other)
Returns a decimal value that is equal to this value plus the specified value.Method parameters in com.opengamma.strata.collect with type arguments of type Decimal Modifier and Type Method Description BasisPoints
BasisPoints. map(UnaryOperator<Decimal> mapper)
Applies an operation to the value.FixedScaleDecimal
FixedScaleDecimal. map(UnaryOperator<Decimal> fn)
Maps this value using the maths operations ofDecimal
.Percentage
Percentage. map(UnaryOperator<Decimal> mapper)
Applies an operation to the value. -
Uses of Decimal in com.opengamma.strata.loader
Methods in com.opengamma.strata.loader that return Decimal Modifier and Type Method Description static Decimal
LoaderUtils. parseDecimal(String str)
Parses a decimal from the input string.static Decimal
LoaderUtils. parseDecimalBasisPoint(String str)
Parses a decimal from the input string, converting it from a basis points to decimal form.static Decimal
LoaderUtils. parseDecimalPercent(String str)
Parses a decimal from the input string, converting it from a percentage to decimal form.
-