| Package | Description |
|---|---|
| com.opengamma.strata.collect |
Root package for common data structures used by Strata.
|
| Modifier and Type | Field and Description |
|---|---|
static BasisPoints |
BasisPoints.ZERO
A basis points of zero.
|
| Modifier and Type | Method and Description |
|---|---|
static BasisPoints |
BasisPoints.fromDecimalForm(Decimal decimal)
Obtains an instance from mathematical decimal form, where 0.007 will create an instance representing 70bps.
|
static BasisPoints |
BasisPoints.fromDecimalForm(double decimal)
Obtains an instance from mathematical decimal form, where 0.007 will create an instance representing 70bps.
|
static BasisPoints |
BasisPoints.fromPercentage(Percentage percentage)
Obtains an instance from a percentage, where 0.7% will create an instance representing 70bps.
|
BasisPoints |
BasisPoints.map(UnaryOperator<Decimal> mapper)
Applies an operation to the value.
|
BasisPoints |
BasisPoints.minus(BasisPoints other)
Returns a basis points equal to the this basis points minus the other one.
|
static BasisPoints |
BasisPoints.of(Decimal basisPoints)
Obtains an instance from a basis points value.
|
static BasisPoints |
BasisPoints.of(double basisPoints)
Obtains an instance from a basis points value.
|
static BasisPoints |
BasisPoints.parse(String str)
Parses a percentage.
|
BasisPoints |
BasisPoints.plus(BasisPoints other)
Returns a basis points equal to the this basis points plus the other one.
|
BasisPoints |
Percentage.toBasisPoints()
Converts this percentage to the equivalent basis points.
|
| Modifier and Type | Method and Description |
|---|---|
int |
BasisPoints.compareTo(BasisPoints other)
Compares this instance to another.
|
static Percentage |
Percentage.fromBasisPoints(BasisPoints basisPoints)
Obtains an instance from a basis points value, where 70bps will create an instance representing 0.7%.
|
BasisPoints |
BasisPoints.minus(BasisPoints other)
Returns a basis points equal to the this basis points minus the other one.
|
BasisPoints |
BasisPoints.plus(BasisPoints other)
Returns a basis points equal to the this basis points 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.