| Package | Description |
|---|---|
| com.opengamma.strata.collect |
Root package for common data structures used by Strata.
|
| Modifier and Type | Field and Description |
|---|---|
static Percentage |
Percentage.ZERO
A percentage of zero.
|
| Modifier and Type | Method and Description |
|---|---|
static Percentage |
Percentage.fromBasisPoints(BasisPoints basisPoints)
Obtains an instance from a basis points value, where 70bps will create an instance representing 0.7%.
|
static Percentage |
Percentage.fromDecimalForm(Decimal decimal)
Obtains an instance from mathematical decimal form, where 0.007 will create an instance representing 0.7%.
|
static Percentage |
Percentage.fromDecimalForm(double decimal)
Obtains an instance from mathematical decimal form, where 0.007 will create an instance representing 0.7%.
|
Percentage |
Percentage.map(UnaryOperator<Decimal> mapper)
Applies an operation to the value.
|
Percentage |
Percentage.minus(Percentage other)
Returns a percentage equal to the this percentage minus the other one.
|
static Percentage |
Percentage.of(Decimal percentage)
Obtains an instance from a percentage value.
|
static Percentage |
Percentage.of(double percentage)
Obtains an instance from a percentage value.
|
static Percentage |
Percentage.parse(String str)
Parses a percentage.
|
Percentage |
Percentage.plus(Percentage other)
Returns a percentage equal to the this percentage plus the other one.
|
Percentage |
BasisPoints.toPercentage()
Converts this basis points to the equivalent percentage.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Percentage.compareTo(Percentage other)
Compares this instance to another.
|
static BasisPoints |
BasisPoints.fromPercentage(Percentage percentage)
Obtains an instance from a percentage, where 0.7% will create an instance representing 70bps.
|
Percentage |
Percentage.minus(Percentage other)
Returns a percentage equal to the this percentage minus the other one.
|
Percentage |
Percentage.plus(Percentage other)
Returns a percentage equal to the this percentage plus the other one.
|
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.