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 DecimalFxRateProvider. convert(Decimal amount, Currency fromCurrency, Currency toCurrency)Converts an amount in a currency to an amount in a different currency using this rate.DecimalBigMoney. getValue()Gets the numeric amount of the money.DecimalCurrency. 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 DecimalFxRateProvider. convert(Decimal amount, Currency fromCurrency, Currency toCurrency)Converts an amount in a currency to an amount in a different currency using this rate.BigMoneyBigMoney. convertedTo(Currency resultCurrency, Decimal fxRate)Converts this amount to an equivalent amount the specified currency.MoneyMoney. convertedTo(Currency resultCurrency, Decimal fxRate)Converts this amount to an equivalent amount the specified currency.static BigMoneyBigMoney. of(Currency currency, Decimal amount)Obtains an instance ofBigMoneyfor the specified currency and amount.static MoneyMoney. of(Currency currency, Decimal amount)Obtains an instance ofMoneyfor the specified currency and amount.DecimalCurrency. 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 BigMoneyBigMoney. map(UnaryOperator<Decimal> mapper)Applies an operation to the amount.MoneyMoney. 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 DecimalRounding. 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 DecimalRounding. 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 DecimalDecimal. MAX_VALUEA decimal value representing the largest supported value.static DecimalDecimal. MIN_VALUEA decimal value representing the smallest supported value.static DecimalDecimal. ZEROA decimal value representing zero.Methods in com.opengamma.strata.collect that return Decimal Modifier and Type Method Description DecimalDecimal. abs()Returns a decimal value that is positive.DecimalFixedScaleDecimal. decimal()Gets the underlying decimal.DecimalDecimal. dividedBy(double other)Returns a decimal value that is equal to this value divided by the specified value.DecimalDecimal. dividedBy(long other)Returns a decimal value that is equal to this value divided by the specified value.DecimalDecimal. dividedBy(Decimal other)Returns a decimal value that is equal to this value divided by the specified value.DecimalDecimal. dividedBy(Decimal other, RoundingMode roundingMode)Returns a decimal value that is equal to this value divided by the specified value, with a rounding mode.DecimalDecimal. mapAsBigDecimal(UnaryOperator<BigDecimal> fn)Maps this decimal value using the maths operations ofBigDecimal.DecimalDecimal. mapAsDouble(DoubleUnaryOperator fn)Maps this decimal value using the maths operations ofdouble.DecimalDecimal. minus(double other)Returns a decimal value that is equal to this value minus the specified value.DecimalDecimal. minus(long other)Returns a decimal value that is equal to this value minus the specified value.DecimalDecimal. minus(Decimal other)Returns a decimal value that is equal to this value minus the specified value.DecimalDecimal. movePoint(int movement)Returns a decimal value with the decimal point moved.DecimalDecimal. multipliedBy(double other)Returns a decimal value that is equal to this value multiplied by the specified value.DecimalDecimal. multipliedBy(long other)Returns a decimal value that is equal to this value multiplied by the specified value.DecimalDecimal. multipliedBy(Decimal other)Returns a decimal value that is equal to this value multiplied by the specified value.DecimalDecimal. negated()Returns a decimal value that is negated.static DecimalDecimal. of(double value)Obtains an instance from adouble.static DecimalDecimal. of(long value)Obtains an instance from along.static DecimalDecimal. of(String str)Obtains an instance from aString.static DecimalDecimal. of(BigDecimal value)Obtains an instance from aBigDecimal.static DecimalDecimal. ofScaled(long unscaled, int scale)Obtains an instance from an unscaled value and a scale.static DecimalDecimal. parse(String str)Parses an instance from aString.DecimalDecimal. plus(double other)Returns a decimal value that is equal to this value plus the specified value.DecimalDecimal. plus(long other)Returns a decimal value that is equal to this value plus the specified value.DecimalDecimal. plus(Decimal other)Returns a decimal value that is equal to this value plus the specified value.DecimalDecimal. roundToPrecision(int precision, RoundingMode roundingMode)Returns a decimal value rounded to the specified precision.DecimalDecimal. roundToScale(int desiredScale, RoundingMode roundingMode)Returns a decimal value rounded to the specified scale.DecimalBasisPoints. toDecimalForm()Converts this basis points to mathematical decimal form.DecimalPercentage. toDecimalForm()Converts this percentage to mathematical decimal form.DecimalBasisPoints. valueBasisPoints()Gets the value in basis points form as aDecimal.DecimalPercentage. 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 intDecimal. compareTo(Decimal other)DecimalDecimal. dividedBy(Decimal other)Returns a decimal value that is equal to this value divided by the specified value.DecimalDecimal. 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 BasisPointsBasisPoints. fromDecimalForm(Decimal decimal)Obtains an instance from mathematical decimal form, where 0.007 will create an instance representing 70bps.static PercentagePercentage. fromDecimalForm(Decimal decimal)Obtains an instance from mathematical decimal form, where 0.007 will create an instance representing 0.7%.DecimalDecimal. minus(Decimal other)Returns a decimal value that is equal to this value minus the specified value.DecimalDecimal. multipliedBy(Decimal other)Returns a decimal value that is equal to this value multiplied by the specified value.static BasisPointsBasisPoints. of(Decimal basisPoints)Obtains an instance from a basis points value.static FixedScaleDecimalFixedScaleDecimal. of(Decimal decimal, int fixedScale)Obtains an instance from a decimal and scale.static PercentagePercentage. of(Decimal percentage)Obtains an instance from a percentage value.DecimalDecimal. 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 BasisPointsBasisPoints. map(UnaryOperator<Decimal> mapper)Applies an operation to the value.FixedScaleDecimalFixedScaleDecimal. map(UnaryOperator<Decimal> fn)Maps this value using the maths operations ofDecimal.PercentagePercentage. 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 DecimalLoaderUtils. parseDecimal(String str)Parses a decimal from the input string.static DecimalLoaderUtils. parseDecimalBasisPoint(String str)Parses a decimal from the input string, converting it from a basis points to decimal form.static DecimalLoaderUtils. parseDecimalPercent(String str)Parses a decimal from the input string, converting it from a percentage to decimal form.
-